Why is clion using MinGW when I specify Cygwin?

Answered

In the toolchains I have cygwin as the environment and everything says it's ok. But when I load a cmake file, I get 

The C compiler "/cygdrive/c/MinGW/bin/gcc.exe" is not able to compile a
simple test program.

It fails with the following output:
Change Dir: /cygdrive/c/Users/.../CLionProjects/472_2/cmake-build-debug/CMakeFiles/CMakeTmp

As the first line implies, it's compiling with MinGW. Is there any way to form it to use the gcc located in the cygwin directory? 

0
1 comment

Hi!

Generally you can specify the compiler using CMAKE_CXX_COMP and CMAKE_C_COMPILER options.

In recently released CLion 2017.3 the Settings/Preferences | Build, Execution, Deployment | Toolchains menu was changed and now it's easier to specify the particular compiler. Please find details in our blogpost.

0

Please sign in to leave a comment.