hi, I need help to know what I have done wrong. I get the same error when I run Windows as the example on the page.
what should I do?
Code:
#include <SFML/Window.hpp>
int main()
{
// Create the main window
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
// Start main loop
bool Running = true;
while (Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
error:
g++ window-window.cpp -lsfml-window
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libsfml-window.so: undefined reference to `sf::Clock::Reset()'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libsfml-window.so: undefined reference to `sf::Unicode::UTF8Offsets'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libsfml-window.so: undefined reference to `sf::Clock::Clock()'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libsfml-window.so: undefined reference to `sf::Clock::GetElapsedTime() const'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libsfml-window.so: undefined reference to `sf::Unicode::UTF8TrailingBytes'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libsfml-window.so: undefined reference to `sf::Sleep(float)'
collect2: ld returned 1 exit status