我安装了Cygwin64,工具链1中的一切都很好,甚至连C编译器都被勾选了。但是每当我创建一个新项目时,我都会遇到这些错误,并且“运行”和“调试”按钮会在开始时显示为灰色;
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/J/.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/J/.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/J/.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/J/.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/J/.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.