Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - flow

Pages: [1]
1
General / Re: Compiling SFML Sample in MSYS2/MinGW64 Environment
« on: April 29, 2019, 10:58:46 pm »
Alright thanks for the response! I'll probably just end up using vs build tools instead, didn't realize MSYS wasn't supported officially and don't want to spend too much time trying to get something running on it.

2
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
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-system
I 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 library
I'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

Pages: [1]