Hello,
I was trying to install and use SFML on VS Code, i managed to compile it but when i run it i have these errors:
The thread 8324 has exited with code -1073741515 (0xc0000135).
The thread 4032 has exited with code -1073741515 (0xc0000135).
The program '[11796] a.exe' has exited with code -1073741515 (0xc0000135).
I have installed SFML 2.5.1 (SEH) 64 bit
And for the compiler i have : g++ (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0
I have installed MinGW from the download page on the SFML site.
I've tried with the 32 bit versions but it does the same error.
I have this basic code:
#include <SFML/Window.hpp>
int main()
{
sf::Window window(sf::VideoMode(800, 600), "My window");
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
}
return (0);
}
but it crashes instantly.
When i delete all the SFML code everythings works normally.
Can someone help me? I've searched for a while now but i can't get it to work...
EDIT:
I tried to download the source and to compile SFML but still the same error...