Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - tintinz

Pages: [1]
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!:)

2
Window / g++ Build problem
« on: June 16, 2010, 02:36:24 am »
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:

Code: [Select]
#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:
Code: [Select]
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


Pages: [1]