Hey guys,
I'm trying to get SFML working on VS 2010 but i'm having problems with the compiler giving linker errors. I'm just trying to run a blank window to check everything is setup fine.
The odd thing is, if I include and run the code for the command line clock, I don't get any linker errors. However, when I try to create a blank window by including SFML/Window.hpp I am getting linker errors.
Are there any tutorials that cover SFML setup with VS 2010 that go through making a blank window?
The odd thing is, using the sf:: scope operator autocomplete recognizes the funtions that return linker errors. There must be something I did wrong with the project setup or files.
Any ideas?
Here is the code too:
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
int main()
{
sf::RenderWindow Game(sf::VideoMode(800, 600, 32), "SFML");
sf::Event Event;
while(Game.IsOpened())
{
while(Game.GetEvent(Event))
{
if(Event.Type == sf::Event::Closed)
Game.Close();
}
Game.Clear();
Game.Display();
}
return EXIT_SUCCESS;
}