Reputation:
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?
Upvotes: 0
Views: 2361
Reputation: 87486
The MSYS2 environment provides two toolchains to target two different runtimes on Windows.
If you really need a lot of features of POSIX, you'll probably not be able to use the MinGW toolchain.
Upvotes: 2