Bonjour,
J'ai compilé SFML dans mingw avec cmake (BUILD_SHARED_LIBS = false) & mingw32-make.
Tout semble bien se passer. Ensuite, je copie les fichiers "*.a" générés dans mon dossier des libs de mingw.
Dans les options de link de mon programme, j'ai bien mis: "-lsfml-system-s -lsfml-window-s" mais malgré cela, j'ai ce genre d'erreur lors du link:
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x15d): undefined reference to `sf::Clock::Clock()'
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x4c1): undefined reference to `sf::err()'
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x5cd): undefined reference to `sf::seconds(float)'
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x631): undefined reference to `sf::err()'
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x74a): undefined reference to `sf::operator!=(sf::Time, sf::Time)'
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x75a): undefined reference to `sf::Clock::getElapsedTime() const'
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x766): undefined reference to `sf::operator-(sf::Time, sf::Time)'
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x76e): undefined reference to `sf::sleep(sf::Time)'
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x776): undefined reference to `sf::Clock::restart()'
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x784): undefined reference to `sf::err()'
C:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x8fe): undefined reference to `sf::Clock::restart()'
...
Info: lors de la compilation de mes fichiers cpp, j'ai définit "SFML_STATIC".
Qu'est-ce que j'ai mal fait ?
Merci d'avance.