当前位置: 首页 > 工具软件 > cmake-conan > 使用案例 >

C语言编译显示make错误,cmake - CMake无法编译简单测试,错误5访问被拒绝 - 堆栈内存溢出...

越景天
2023-12-01

我对CMake相当陌生,当我尝试编译时,我得到以下输出。 我整天都忙不过来-外面有人有经验吗? 对相关目录和文件的权限似乎很好。 任何帮助,不胜感激! 谢谢

The C compiler identification is GNU 4.6.2

The CXX compiler identification is GNU 4.6.2

Check for working C compiler: C:/MinGW/bin/gcc.exe

Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):

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

program.

It fails with the following output:

Change Dir: C:/buildtemp/CMakeFiles/CMakeTmp

Run Build Command:C:/MinGW/bin/mingw32-make.exe

"cmTryCompileExec2665670929/fast"

C:/MinGW/bin/mingw32-make.exe -f

CMakeFiles\cmTryCompileExec2665670929.dir\build.make

CMakeFiles/cmTryCompileExec2665670929.dir/build

process_begin: CreateProcess(C:\MinGW\bin\mingw32-make.exe,

C:/MinGW/bin/mingw32-make.exe -f

CMakeFiles\cmTryCompileExec2665670929.dir\build.make

CMakeFiles/cmTryCompileExec2665670929.dir/build, ...) failed.

make (e=5): Access is denied.

mingw32-make.exe: *** [cmTryCompileExec2665670929/fast] Error 5

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt:2 (project)

Configuring incomplete, errors occurred!

 类似资料: