我最近在克里昂遇到了一个问题。每次创建新项目时,控制台上都会显示以下错误:
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,但它没有用。