I linked to the system library and I still get the same crash.
Release mode :
#include <SFML/Window.hpp>
#pragma comment( lib, "sfml-system" )
#pragma comment( lib, "sfml-window" )
int main()
{
sf::Window App1( sf::VideoMode(800, 600, 32), "Window 1" );
App1.Close();
return 0;
}
The reason why I linked both versions is because if I link just the debug libraries
// debug mode
#include <SFML/Window.hpp>
#pragma comment( lib, "sfml-system-d" )
#pragma comment( lib, "sfml-window-d" )
int main()
{
sf::Window App1( sf::VideoMode(800, 600, 32), "Window 1" );
App1.Close();
return 0;
}
I get "The application was unable to start correctly (0xc0150002). Click OK to close the application."
However, if I link both versions
// debug mode
#include <SFML/Window.hpp>
#pragma comment( lib, "sfml-system" )
#pragma comment( lib, "sfml-system-d" )
#pragma comment( lib, "sfml-window" )
#pragma comment( lib, "sfml-window-d" )
int main()
{
sf::Window App1( sf::VideoMode(800, 600, 32), "Window 1" );
App1.Close();
return 0;
}
I don't get THAT error BUT it still crashes with the message in the original post.
Also all of the dlls are in the executable directory.