1
General / Compiling SFML Sample in MSYS2/MinGW64 Environment
« on: April 28, 2019, 10:29:52 pm »
Hi there,
First of all sorry if there has been a post on this subject before, but I recently picked up SFML and have been trying to set up for dev but have been running into an issue. I'm using the sample code from the tutorial (green circle window), but when I try to compile it from the command line (MSYS2 shell), with
Any help would be appreciated, thanks
First of all sorry if there has been a post on this subject before, but I recently picked up SFML and have been trying to set up for dev but have been running into an issue. I'm using the sample code from the tutorial (green circle window), but when I try to compile it from the command line (MSYS2 shell), with
Quote
g++ main.cpp -I/c/Lib/SFML-2.5.1/include -L/c/Lib/SFML-2.5.1/lib -lsfml-graphics -lsfml-window -lsfml-systemI run into this error
Quote
/c/Lib/SFML-2.5.1/include/SFML/Config.hpp:97:10: error: #error This UNIX operating system is not supported by SFML libraryI'm currently using the binaries provided by the website for GCC 7.3.0 MinGW (SEH) - 64-bit, but am I misunderstanding which ones I'm supposed to use? BC the check for windows just checks if _WIN32 is defined but afaik mingw does not have this, but rather defines__MINGW32__
Any help would be appreciated, thanks