I have these undefined references when I compile my project on Code::Blocks (MingW):
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::~Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::~Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::~Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::~Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::~Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| more undefined references to `sf::Window::~Window()' follow|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::~Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::~Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::Create(HWND__*, sf::ContextSettings const&)'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::~Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::Create(HWND__*, sf::ContextSettings const&)'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::~Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::Create(sf::VideoMode, std::string const&, unsigned long, sf::ContextSettings const&)'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::~Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::Create(sf::VideoMode, std::string const&, unsigned long, sf::ContextSettings const&)'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::~Window()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::GetHeight() const'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::GetWidth() const'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderWindow.cpp.obj):RenderWindow.cpp|| undefined reference to `sf::Window::SetActive(bool) const'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp|| undefined reference to `sf::GlResource::~GlResource()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp|| undefined reference to `sf::GlResource::~GlResource()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp|| undefined reference to `sf::GlResource::~GlResource()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp|| undefined reference to `sf::GlResource::~GlResource()'|
..\libext\SFML\lib\libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp|| undefined reference to `sf::GlResource::~GlResource()'|
..\libext\SFML\lib\libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp|| undefined reference to `sf::GlResource::GlResource()'|
..\libext\SFML\lib\libsfml-graphics-s.a(Renderer.cpp.obj):Renderer.cpp|| undefined reference to `sf::GlResource::GlResource()'|
..\libext\SFML\lib\libsfml-graphics-s.a(Shader.cpp.obj):Shader.cpp|| undefined reference to `sf::GlResource::EnsureGlContext()'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
I've rebuild the master SFML on GIT with CMake without any error (very clean build system by the way :wink:).
I link with these:
-mthreads
-lsfml-system-s
-lsfml-window-s
-lsfml-graphics-s
-lopengl32
-lglu32
So, what did I miss?