I've been a user of 1.6 for a while now but I decided to try out 2.0 and having difficulty with compiling and even running a basic application.
Firstly I have no issues with running nmake and generating vs2008 solution files and also copiling the libraries to static. I also know I need to include the SFML_STATIC pre def if I want to compile with my project.
So once I compiled the libs I started a new empty console project (as usual) and setup the pre def and added the libs to the linker, created a simple blank screen render app and compiled, no probs. Then when I run it, I get a crash on App.Clear(); it is as though its having trouble getting opengl context perhaps???
What can I do to further debug my problem? heres the code for the simple app, maybe im missing something.
//
//
//
#include "SFML/Graphics.hpp"
int main()
{
sf::RenderWindow App(sf::VideoMode::GetDesktopMode(), "Test");
sf::Event e;
while(App.IsOpened())
{
while(App.GetEvent(e))
{
}
App.Clear();
App.Display();
}
}
btw im running win7 32bit
Solved: Was using incorrect headers, had previously downloaded 2.0 before but headers must of changed since new source downloaded yesterday.