1
General / SFML 2.0 linking issue
« on: December 04, 2011, 06:37:37 pm »
I meant in the 1.6 getting started tutorial, sorry Same place I lifted the sample code.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#include <SFML/System.hpp>
#include <iostream>
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime() << std::endl;
sf::Sleep(0.5f);
}
return 0;
}
D:/Development/Projects/SFML Test/main.cpp:6: undefined reference to `__imp__ZN2sf5ClockC1Ev'
D:/Development/Projects/SFML Test/main.cpp:9: undefined reference to `__imp__ZNK2sf5Clock14GetElapsedTimeEv'
D:/Development/Projects/SFML Test/main.cpp:10: undefined reference to `__imp__ZN2sf5SleepEj'
D:/Development/Projects/SFML Test/main.cpp:7: undefined reference to `__imp__ZNK2sf5Clock14GetElapsedTimeEv'
obj\Release\main.o:main.cpp:(.text.startup+0x19): undefined reference to `__imp__ZN2sf5ClockC1Ev'
obj\Release\main.o:main.cpp:(.text.startup+0x20): undefined reference to `__imp__ZNK2sf5Clock14GetElapsedTimeEv'
obj\Release\main.o:main.cpp:(.text.startup+0x2f): undefined reference to `__imp__ZN2sf5SleepEj'