I'm really sorry to post this as I suppose you've already heard about a 1000 times but I really do not find a solution in the forum,
I'm using:
D:\Projects\cppcon\code>g++ --version
g++ (rev5, Built by MinGW-W64 project) 4.8.1
and I specify in g++ all paths and libraries.
g++ -I. -ID:/ExternalLibs/SFML-2.1-windows-gcc-4.7-mingw-32bits/SFML-2.1/include -LD:/ExternalLibs/SFML-2.1-windows-gcc-4.7-mingw-32bits/SFML-2.1/lib -lsfml-graphics-d -lsfml-window-d -lsfml-system-d ./main.cpp -o ./main.exe
C:\Users\jagudo\AppData\Local\Temp\cc3rZFLw.o:main.cpp:(.text+0x1e): undefined reference to `_imp___ZN2sf5ClockC1Ev'
The code is the one in the examples:
#include <SFML/System.hpp>
#include <iostream>
int main()
{
sf::Clock Clock;
while (Clock.getElapsedTime() < sf::seconds(5.f))
{
std::cout << Clock.getElapsedTime().asSeconds() << std::endl;
sf::sleep(sf::seconds(0.5f));
}
return 0;
}
Once again, sorry if it has been asked a thousand times.
Regards,