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

Author Topic: Recompiling sfml to static link to sndfile  (Read 1495 times)

0 Members and 1 Guest are viewing this topic.

SteveDeFacto

  • Newbie
  • *
  • Posts: 3
    • View Profile
Recompiling sfml to static link to sndfile
« on: July 24, 2012, 12:05:01 pm »
I got sndfile to compile. I then switched out the lib which sfml links to with my static copy. Everything compiles fine. I then try to link sfml to my project in code blocks and I get an error about undefined reference to `__chkstk_ms'

Here is my full debug output:

Quote
-------------- Build: all in Ovgl ---------------

Using makefile: Makefile
Linking CXX executable Ovgl.exe
Warning: resolving _glewInit@0 by linking to _glewInit
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
c:/progra~2/codebl~1/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: Dwarf Error: Offset (35480) greater than or equal to (null) size (4954657).
C:\Users\Steven\Desktop\ovgl\src\.\..\dependencies\SFML\lib/libsfml-audio-s.a(wav.o):wav.c:(.text+0x26b): undefined reference to `__chkstk_ms'
collect2: ld returned 1 exit status
mingw32-make.exe[2]: *** [src/Ovgl.exe] Error 1
mingw32-make.exe[1]: *** [src/CMakeFiles/Ovgl.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
Creating library file: libOvgl.dll.a
Process terminated with status 2 (1 minutes, 14 seconds)
1 errors, 1 warnings