1
Window / g++ Build problem
« on: June 16, 2010, 12:48:02 pm »Quote from: "JollyRoger"
You also need to link to sfml-system.
thank you for the help!:)
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.
You also need to link to sfml-system.
#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;
}
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