c - "The C compiler "/usr/bin/cc "is not able to compile a simple test program."

标签 c eclipse cygwin clion

我安装了 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.

最佳答案

cygguile-17.dll 属于 libguile17 包。重新安装。

使用https://cygwin.com/packages/对于这种类型的搜索

关于c - "The C compiler "/usr/bin/cc "is not able to compile a simple test program.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41512616/

相关文章:

c - C 中类型转换丢失的信息

c - vTaskDelay 和 _delay_ms 之间的行为差​​异是什么?

android - 在选项卡布局中添加 gridview

opencv - cmake 无法找到与 Unix Makefiles 对应的构建程序

c - 关于 Linux 中的错误编号

c - OpenMP 并行化效率不高

eclipse - 我可以用什么在 Eclipse 中创建数据库方案?

java "OutOfMemory Error"耶拿应用程序

compilation - 在Cygwin上编译GRUB(64位)

python - cygwin 中的 aws cli - 如何清除窗口和 cygwin 样式路径中的差异