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

Author Topic: [solved][sfml 2.0] Undefined references  (Read 3444 times)

0 Members and 2 Guests are viewing this topic.

Inubis

  • Newbie
  • *
  • Posts: 8
    • View Profile
[solved][sfml 2.0] Undefined references
« 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 but also with every other previously-working code(using 2.0RC). I use the static libraries, OS is Windows 7 32bit.

Thanks.
« Last Edit: April 30, 2013, 02:41:11 pm by Inubis »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: [solved][sfml 2.0] Undefined references
« Reply #1 on: April 29, 2013, 10:27:02 pm »
And you've still defined SFML_STATIC and you're actually using the TDM compiler?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Inubis

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: [sfml 2.0] Undefined references
« Reply #2 on: April 30, 2013, 02:40:54 pm »
Managed to fix it by installing a different GCC and CodeBlocks version.