SFML community forums
Help => General => Topic started by: cpl 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.
#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 (http://vaporizers.net/vapir-air-one)
-
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.
-
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.
-
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.