"The C compiler "/usr/bin/cc" is not able to compile a simple test program."
Hey,
I installed Cygwin64 and everything is fine in Toolchains, even the C Compiler is ticked. But I get these errors whenever I create a new project;
Error:The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/Batuhan/.CLion2016.2/system/cmake/generated/untitled132-5df26809/5df26809/__default__/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_7ca0a/fast"
C:/cygwin64/bin/make.exe: error while loading shared libraries: cygguile-17.dll: cannot open shared object file: No such file or directory
CMake will not be able to correctly generate this project.
Error:Configuration Debug
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/Batuhan/.CLion2016.2/system/cmake/generated/untitled132-5df26809/5df26809/Debug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_7db24/fast"
C:/cygwin64/bin/make.exe: error while loading shared libraries: cygguile-17.dll: cannot open shared object file: No such file or directory
CMake will not be able to correctly generate this project.
Error:Configuration Release
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/Batuhan/.CLion2016.2/system/cmake/generated/untitled132-5df26809/5df26809/Release/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_fe477/fast"
C:/cygwin64/bin/make.exe: error while loading shared libraries: cygguile-17.dll: cannot open shared object file: No such file or directory
CMake will not be able to correctly generate this project.
Error:Configuration RelWithDebInfo
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/Batuhan/.CLion2016.2/system/cmake/generated/untitled132-5df26809/5df26809/RelWithDebInfo/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_c2ddb/fast"
C:/cygwin64/bin/make.exe: error while loading shared libraries: cygguile-17.dll: cannot open shared object file: No such file or directory
CMake will not be able to correctly generate this project.
Error:Configuration MinSizeRel
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/Batuhan/.CLion2016.2/system/cmake/generated/untitled132-5df26809/5df26809/MinSizeRel/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_827b4/fast"
C:/cygwin64/bin/make.exe: error while loading shared libraries: cygguile-17.dll: cannot open shared object file: No such file or directory
CMake will not be able to correctly generate this project.
Thanks for your help in advance.
请先登录再写评论。
Is there this dll located in the ${CYGWIN_HOME}/bin directory?
Assuming you are referring to "cygguile-17.dll", no. There is no such file in "C:/cygwin64/bin".
Could you please check that you're getting the same error if you compile a simple program from cygwin terminal outside CLion (e.g. `echo "int main() {}" > file.c && /usr/bin/cc file.c`)
Cygwin terminal says "-bash: $'\302\226echo': command not found"
Please try using the command: echo "int main() {}" > file.c && /usr/bin/cc file.c without quotes.
I did so. As you can see from the picture.

There is some bogus symbol in front of the echo command, so it is not recognized by bash.
Oh I am very sorry, I am not very used to this command stuff.
I did and nothing came up but new command line, I guess it compiled very well?
I uninstalled and reinstalled Clion and problem continues.
Isn't there any hope?