samedi 25 avril 2015

libgcc_s_sjlj-1 missing from compiled file in MinGW C++11

I am using the latest version of MinGW on Windows 7. I have written some code in SFML, and when I tried to compile and execute it, it gives me an error saying that I am missing libgcc_s_sjlj-1. I have checked this place out and added -static-libgcc to the command line, but even with that it still doesn't work. Any ideas? Here is the batch file that compiles and runs the code.

@ECHO OFF
@echo Calibrating...
g++ -o SFMLTest main.cpp -std=c++11 -static-libgcc -lsfml-system -lsfml-window -lsfml-graphics
@echo Finished! Running...
.\SFMLTest

Aucun commentaire:

Enregistrer un commentaire