SFML community forums

Help => General => Topic started by: Inubis on April 29, 2013, 10:19:21 pm

Title: [solved][sfml 2.0] Undefined references
Post by: Inubis on April 29, 2013, 10:19:21 pm
So I downloaded the new 2.0 release for GCC 4.7 TDM (used with CodeBlocks), set up all the paths but seem to get this compiler error:

Quote
||=== Build: Debug in GraphIt (compiler: GNU GCC Compiler) ===|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| undefined reference to `__chkstk_ms'|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| undefined reference to `__chkstk_ms'|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| undefined reference to `__chkstk_ms'|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| undefined reference to `__chkstk_ms'|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| undefined reference to `__chkstk_ms'|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| more undefined references to `__chkstk_ms' follow|
||=== Build failed: 6 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

This happens with the (minimal)code in the tutorial (http://www.sfml-dev.org/tutorials/2.0/start-cb.php) but also with every other previously-working code(using 2.0RC). I use the static libraries, OS is Windows 7 32bit.

Thanks.
Title: Re: [solved][sfml 2.0] Undefined references
Post by: eXpl0it3r on April 29, 2013, 10:27:02 pm
And you've still defined SFML_STATIC and you're actually using the TDM compiler?
Title: Re: [sfml 2.0] Undefined references
Post by: Inubis on April 30, 2013, 02:40:54 pm
Managed to fix it by installing a different GCC and CodeBlocks version.