I fixed it, look down below for my working linking order....
---------------
Hey there
I am using SFML for quite a while now, but just used dynamic linking.
Now I decided to set up static linking.
But every time I try to compile something, I get a few errors...
I think I did set up the project properly...
I also added the "SFML_STATIC" to the #defines...
The code is:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
That's the error message:
||=== Build: Debug in MTG (compiler: GNU GCC Compiler) ===|
C:\SFML-2.2\lib\libsfml-system-s-d.a(SleepImpl.cpp.obj)||In function `ZN2sf4priv9sleepImplENS_4TimeE':|
D:\sfml-release\_Sources\SFML\src\SFML\System\Win32\SleepImpl.cpp|41| undefined reference to `_imp__timeGetDevCaps@8'|
D:\sfml-release\_Sources\SFML\src\SFML\System\Win32\SleepImpl.cpp|44| undefined reference to `_imp__timeBeginPeriod@4'|
D:\sfml-release\_Sources\SFML\src\SFML\System\Win32\SleepImpl.cpp|50| undefined reference to `_imp__timeEndPeriod@4'|
C:\SFML-2.2\lib\libglew.a(glew.c.o):glew.c || undefined reference to `wglGetCurrentDC@0'|
C:\SFML-2.2\lib\libglew.a(glew.c.o):glew.c || undefined reference to `wglGetCurrentDC@0'|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
I hope that somebody can help me.
Thanks in advance
Mokka
(Please excuse bad english ^^)