SFML community forums

Bindings - other languages => C => Topic started by: Groogy on June 16, 2012, 11:13:27 pm

Title: MinGW compilation error in Debug
Post by: Groogy on June 16, 2012, 11:13:27 pm
Hi!

Trying some new stuff out and as I fetched the new version of the API I got this problem:
[ 44%] Building CXX object src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/Circl
eShape.cpp.obj
C:\Users\Groogy\Documents\Work\CSFML\src\SFML\Graphics\CircleShape.cpp: In funct
ion 'sfTransform sfCircleShape_getTransform(const sfCircleShape*)':
C:\Users\Groogy\Documents\Work\CSFML\src\SFML\Graphics\CircleShape.cpp:162:5: er
ror: could not convert '0' from 'int' to 'sfTransform'
C:\Users\Groogy\Documents\Work\CSFML\src\SFML\Graphics\CircleShape.cpp: In funct
ion 'sfTransform sfCircleShape_getInverseTransform(const sfCircleShape*)':
C:\Users\Groogy\Documents\Work\CSFML\src\SFML\Graphics\CircleShape.cpp:172:5: er
ror: could not convert '0' from 'int' to 'sfTransform'
mingw32-make[2]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/CircleShap
e.cpp.obj] Error 1
mingw32-make[1]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/all] Error
 2
mingw32-make: *** [all] Error 2

It compiles perfectly with release settings but only fails in debug and I don't know why.

Update: Got the same with Visual Studio 10
Title: Re: MinGW compilation error in Debug
Post by: Laurent on June 17, 2012, 09:32:34 am
It's fixed, thanks.