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

Author Topic: SVN-Problems  (Read 3132 times)

0 Members and 1 Guest are viewing this topic.

cpl

  • Newbie
  • *
  • Posts: 19
    • View Profile
SVN-Problems
« on: May 24, 2008, 07:48:54 am »
I tried for the first time to download the latest SVN and as you can guess I've  run into some problems.

I've copied and replaced the include/SFML folder but when I try to run this code it won't work.

Code: [Select]

#include <SFML/Graphics.hpp>


int main(int argc, char *argv[])
{
    sf::RenderWindow    RenderWindow(sf::VideoMode(800,600,32),"Test");
    sf::Event           Event;  
     
    bool                Loop = true;
             
    while(Loop)
    {
        while(RenderWindow.GetEvent(Event))
        {
            if(Event.Type == sf::Event::Closed)
                Loop = false;                        
        }
       
        RenderWindow.Display();
    }
}


When I try to run this code it says:   [Linker error] undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, std::string const&, unsigned long, sf::WindowSettings const&)'


Obviously I'm missing something here but I'm a complete noob at this and  need some help.
________
vapir air one

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
SVN-Problems
« Reply #1 on: May 24, 2008, 09:08:34 am »
Using SVN means updating the whole source code and recompiling SFML. You can't get a new version simply by replacing headers.

There's a tutorial on the wiki about using SVN and recompiling SFML.
Laurent Gomila - SFML developer

eleinvisible

  • Newbie
  • *
  • Posts: 47
    • View Profile
SVN-Problems
« Reply #2 on: May 25, 2008, 01:20:00 am »
Off-topic: Laurent I'd recommend making a sticky in every forum with a link to SVN download and build instructions...it would save time.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
SVN-Problems
« Reply #3 on: May 25, 2008, 08:58:27 am »
There's a tutorial on the wiki, that's more than enough ;)

I prefer showing the users where to go to find useful informations, rather than duplicating important things everywhere.
Laurent Gomila - SFML developer