I am running CLion which recommended MinGW. The most current one seems to be MSYS2. At first CLion didn't find gcc, cmake and so on. To do that I had to install mingw-w64-x86_64-toolchain, which creates a mingw64 folder in my msys64 (MSYS2 installation folder) folder.
A software I am trying to compile requires either MSVC functions or POSIX ones, like sysconf
. But sysconf is undefined, at least in the unistd.h of mingw-w64-x86_64-toolchain. In the main unistd.h of MSYS2 itself it is available.
So, what's the big difference? Why aren't they the same?