gpt4 book ai didi

c++ - CLion无法编译新项目

转载 作者:行者123 更新时间:2023-11-30 16:32:09 28 4
gpt4 key购买 nike

我最近遇到了 CLion 的问题。每次我创建新项目时,控制台上都会出现以下错误:

C:\Users\Diego\.CLion2018.1\system\cygwin_cmake\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=C:/cygwin64/bin/make.exe -DCMAKE_C_COMPILER=C:/cygwin64/bin/gcc.exe -DCMAKE_CXX_COMPILER=C:/cygwin64/bin/c++.exe -G "CodeBlocks - Unix Makefiles" "/cygdrive/c/Users/Diego/Documents/Arquitectura de Computadores/Mini Tareas/Mini Tarea 6/compilador"
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: C:/cygwin64/bin/gcc.exe
CMake Error: Cannot open file for write: /cygdrive/c/Users/Diego/Documents/Arquitectura de Computadores/Mini Tareas/Mini Tarea 6/compilador/cmake-build-debug/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_da27f.dir/build.make.tmp
CMake Error: : System Error: Permission denied
CMake Error: Cannot open file for write: /cygdrive/c/Users/Diego/Documents/Arquitectura de Computadores/Mini Tareas/Mini Tarea 6/compilador/cmake-build-debug/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_da27f.dir/depend.make.tmp
CMake Error: : System Error: Permission denied
CMake Error: Cannot open file for write: /cygdrive/c/Users/Diego/Documents/Arquitectura de Computadores/Mini Tareas/Mini Tarea 6/compilador/cmake-build-debug/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_da27f.dir/flags.make.tmp
CMake Error: : System Error: Permission denied
CMake Error: Cannot open file for write: /cygdrive/c/Users/Diego/Documents/Arquitectura de Computadores/Mini Tareas/Mini Tarea 6/compilador/cmake-build-debug/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_da27f.dir/link.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Could not create /cygdrive/c/Users/Diego/Documents/Arquitectura de Computadores/Mini Tareas/Mini Tarea 6/compilador/cmake-build-debug/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_da27f.dir/cmake_clean.cmake
CMake Error: Cannot open file for write: /cygdrive/c/Users/Diego/Documents/Arquitectura de Computadores/Mini Tareas/Mini Tarea 6/compilador/cmake-build-debug/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_da27f.dir/DependInfo.cmake.tmp
CMake Error: : System Error: Permission denied
CMake Error: Cannot open file for write: /cygdrive/c/Users/Diego/Documents/Arquitectura de Computadores/Mini Tareas/Mini Tarea 6/compilador/cmake-build-debug/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_da27f.dir/progress.make.tmp
CMake Error: : System Error: Permission denied
CMake Error at /cygdrive/c/Users/Diego/.CLion2018.1/system/cygwin_cmake/share/cmake-3.10.3/Modules/CMakeTestCCompiler.cmake:37 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
See also "/cygdrive/c/Users/Diego/Documents/Arquitectura de Computadores/Mini Tareas/Mini Tarea 6/compilador/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/cygdrive/c/Users/Diego/Documents/Arquitectura de Computadores/Mini Tareas/Mini Tarea 6/compilador/cmake-build-debug/CMakeFiles/CMakeError.log".

这只发生在新的 C++ 项目中,旧的项目工作得很好。我尝试卸载 CLion,但没有成功。

最佳答案

也尝试重新安装编译器。另外,检查它在最后两行输出中显示的日志文件,看看是否有更多有用的信息。

关于c++ - CLion无法编译新项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50265229/

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