I've been trying for three days to set up SFML 2.6.1 in VSCode but every time that I try to launch the test program this error appears:
The procedure entry point _ZNSt15basica_streambuflcSt11char_traitslcEE7seekposESt4fposliESt12_los_Openmode could not be located in the dynamic link library C:\Users\{user}\sfml-system-2.dll.
Followed quite a few tutorials that use cmake or makefiles and still cannot manage to run the program. It compiles without any errors.
Working on Windows 11 and tried both mingw32 and mingw64 with UCRT and MSVCRT.
This is my settings.json file:
{
"workbench.settings.applyToAllProfiles": [
],
"C_Cpp.default.compilerPath": "C:/MinGW/mingw32/bin/g++.exe",
"C_Cpp.default.includePath": ["${workspaceFolder}/src/include"]
}
And the makefile the last makefile that I tried:all: compile link
compile:
g++ -Isrc/include -c main.cpp
link:
g++ main.o -o main -Lsrc/lib -lsfml-graphics -lsfml-window -lsfml-system
I am quite new into programming and any help would be appreciated.