On visual studio 10:
I've tryed out some code and everything was fine, but when I use this line:
sf::RenderWindow App( sf::VideoMode ( 800, 600, 32 ), "Hexagon Puzzle Thing" );
Or anything with RenderWindow I get an:
Unhandled exception at 0x76adfeb8 in SFML + Box2D Project.exe: 0xC0000005: Access violation reading location 0xcccccccc.
Code I'm using:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow App( sf::VideoMode ( 800, 600, 32 ), "Hexagon Puzzle Thing" );
while( App.IsOpened() )
{
sf::Event Event;
while( App.GetEvent( Event ))
{
if( Event.Type == sf::Event::Closed )
App.Close();
}
App.Draw( sf::Shape::Rectangle( 350, 200, 600, 350, sf::Color::Green ));
App.Display();
}
return EXIT_SUCCESS;
}
On visua studio 08:
The code above seem to work on 2008 version but when I add some Box2D code I get errors like these(it still works though):
1>LINK : C:\Users\Deividas\Documents\Visual Studio 2008\Projects\Project1\SFML + Box2D project\Debug\SFML + Box2D project.exe not found or not built by the last incremental link; performing full link
1>Box2D.lib(b2World.obj) : warning LNK4229: invalid directive '/FAILIFMISMATCH:_MSC_VER=1600' encountered; ignored