Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Two issues I've come across  (Read 7031 times)

0 Members and 1 Guest are viewing this topic.

deltaphc

  • Newbie
  • *
  • Posts: 4
    • View Profile
Two issues I've come across
« on: January 27, 2009, 10:32:33 am »
Hello! Couldn't find these issues elsewhere, so I decided to register and post this.

At the top of my main.c:
Code: [Select]
#include <string.h>
#include <SFML/Audio.h>
#include <SFML/Graphics.h>
#include <physfs.h>


When I try to compile:
Code: [Select]
C:\dev\SFML-1.4\CSFML\include\SFML\Graphics\RenderWindow.h|51|error: redefinition of typedef 'sfRenderWindow'|
C:\dev\SFML-1.4\CSFML\include\SFML\Graphics\Image.h|36|error: previous declaration of 'sfRenderWindow' was here|
||=== Build finished: 2 errors, 0 warnings ===|


Using MinGW (GCC 4.3.2) and CodeBlocks. Any ideas?

Also, in the CSFML/lib/mingw/ folder in the C SDK, it appears that the filenames of the dynamic and static libraries are reversed. i.e. it's named libcsfml-audio.a when it should be audio-s, etc.

The regular C++ version works fine, but I just code in C as a personal preference. ;)

Sirt

  • Newbie
  • *
  • Posts: 27
    • View Profile
Two issues I've come across
« Reply #1 on: January 29, 2009, 02:47:37 pm »
I have the very same problem here too!

I wonder if it's how I've linked the lib files (the order),so I only linked the graphics lib and still get the redefinition errors.

Hey deltaphc,did you sort this one out,I'm stuck???

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Two issues I've come across
« Reply #2 on: January 29, 2009, 03:17:27 pm »
This is actually a bug in CSFML, which will be fixed soon.
Laurent Gomila - SFML developer

Sirt

  • Newbie
  • *
  • Posts: 27
    • View Profile
Two issues I've come across
« Reply #3 on: January 29, 2009, 04:11:19 pm »
Quote from: "Laurent"
This is actually a bug in CSFML, which will be fixed soon.


Thanks for your response Laurent,
I at least can rest at ease now.

Fantastic creation btw.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Two issues I've come across
« Reply #4 on: January 30, 2009, 03:52:20 pm »
It's done, it should compile now ;)
Laurent Gomila - SFML developer

 

anything