Hey guys,
I've been coding with SFML (amazing!!) for a while in Eclipse, on windows XP, with minGW as my compiler. I'm trying to switch from the dynamic libraries to static, so i replaced my library table:
sfml-system
sfml-audio
sfml-window
sfml-graphics
with this:
sfml-system-s
sfml-audio-s
sfml-window-s
sfml-graphics-s
However I am now getting many undefined references. Here is a sample of the first few lines.
g++ -orun.exe src\main.o src\Terrain.o src\Static.o src\SoundManager.o src\Scene.o src\Player.o src\ParticleSystem.o src\Level.o src\InputListener.o src\ImageManager.o src\FrameListener.o src\Entity.o src\Editor.o -lsfml-system-s -lsfml-main -lsfml-audio-s -lsfml-window-s -lsfml-graphics-s -llibboost_serialization-mgw34-mt -lSPARK -lSPARK_GL -lSPARK_SFML
/mingw/lib/libsfml-window-s.a(Window.o):Window.cpp:(.text+0x3cb): undefined reference to `sf::Sleep(float)'
/mingw/lib/libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp:(.text+0xae5): undefined reference to `glReadPixels@28'
/mingw/lib/libsfml-graphics-s.a(Shape.o):Shape.cpp:(.text+0x6b3): undefined reference to `glDisable@4'
Any ideas? I dont think the other libraries (boost, SPK) are interfering, the problems all come from SFML libraries.