SFML community forums

Help => General => Topic started by: thecheeselover on June 10, 2018, 09:38:09 pm

Title: Bug in CMake with MinGW-w64 GCC 8.1
Post by: thecheeselover on June 10, 2018, 09:38:09 pm
Using the MinGW-w64 compiler for GCC 8.1.0 (seh, posix), I tried to setup the Code::Blocks project from the source files of SFML 2.5.0.


I tried the same thing but with the TDM GCC 5.1.0-3 64 bit compiler and got no errors.

Did I do something wrong or CMake or SFML CMake files have errors?
Title: Re: Bug in CMake with MinGW-w64 GCC 8.1
Post by: eXpl0it3r on June 10, 2018, 10:05:25 pm
Just picking the compilers doesn't work. You need to fully switch the toolchain, by having the compiler's bin directory in PATH.

Since I work with many different variants of MinGW, I tend to not have any of them in PATH and only temporarily add one when I need it by calling set PATH=<path to compiler>\bin;%PATH%

MinGW-w64 GCC 8.1.0 (POSIX, SEH) from MinGW Builds works fine for me.
Title: Re: Bug in CMake with MinGW-w64 GCC 8.1
Post by: thecheeselover on June 11, 2018, 12:46:02 am
I confirm what you said. It works if I put one of my compilers bin directory in PATH. The order matters if there are many. It also works with the default (autodetected) compiler.

Thank you very much.