I have been trying to install the SFML library on VSCode, however when I try to run the .exe file, several errors pop up (windows dialog messages)
"the procedure entry point __gxx_personality_v0 could not be located in the dynamic link library C:/Users/Uporabnik/Documents/c/c++/O'elliy books/SFML_test/app.exe."
"the procedure entry point
_ZNKSt7__cxx1112basic_stringlcSt11char_traitslcESalcEE12find_last_ofEPKcjj could not be located in the dynamic link library C:/lib/SFML-2.5.1/bi/sfml-graphics-2.dll."
and repeat he last error for sfml-system-2.dll, sfml-window_2.dll.
What I have done so far:
Followed this video (among others)
(
)
Installed VSCode (working fine with other projects, not sure about third party libraries since this is the first one)
Installed minGW 8.1 64 bit (version I usually use) and minGW 32 bit 7.3.0 (compatible with SFML, downloaded from SFML 2.5.1 download page)
Added environmental variables for mingw/lib and SFML/bin
Made sure that minGW 32 is before 64 in env. var.
Made sure that the compiler I use with VSCode is 7.3.0 (g++ --version)
"g++.exe (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 7.3.0"
c_cpp_properties.json VSCode file added include path: "C:/lib/SFML-2.5.1/include"
Used the SFML tutorial example on:
https://www.sfml-dev.org/tutorials/2.5/start-vc.php(green circle on black screen)
compiled with:
g++ -I C:\lib\SFML-2.5.1\include -c test.cpp -o test.o -m32
g++ -LC:/lib/SFML-2.5.1/lib ./test.o -o application.exe -lmingw32 -lsfml-graphics -lsfml-window -lsfml-system -lsfml-main -mwindows -m32
(works fine until now)
and finally:
double click on application.exe
And this is when the errors pop up.
Additional info:
I am using Windows 10 x64, VSCode, SFML for 32 bit.
VSCode is working fine for me, compiled dozens of projects without issue.
This is not the only time I tried using SFML, the previous time was about a year ago, but then I had the
#include <SFML/Graphics.hpp> //no such file or directory exists.
I am probably giving way too much details, but after 8 hours of my life spent on this, I want the solution as fast as possible.
Thank you in advance.