gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 16:51:54 27 4
gpt4 key购买 nike

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

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com