Ich versuche das Einrichten einer C/C++ Umgebung CLION verwenden, aber CMake ist nicht in der Lage das Testprogramm zu kompilieren:Windows-CMake Wird nicht Prüfprogramm Kompilieren
C:\Users\corey\.CLion2016.3\system\cygwin_cmake\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /cygdrive/c/Users/corey/ClionProjects/demo
-- The C compiler identification is MSVC 18.0.31101.0
-- The CXX compiler identification is MSVC 18.0.31101.0
-- Check for working C compiler: /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe
-- Check for working C compiler: /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe -- broken
CMake Error at /cygdrive/c/Users/corey/.CLion2016.3/system/cygwin_cmake/share/cmake-3.6.2/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/cygdrive/c/Program Files (x86)/Microsoft Visual Studio
12.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/corey/ClionProjects/demo/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command:"/cygdrive/c/D/dmd2/windows/bin/make.exe"
"cmTC_2a8fc/fast"
f CMakeFiles/cmTC_2a8fc.dir/build.make CMakeFiles/cmTC_2a8fc.dir/build
Error: 'f' not found
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "/cygdrive/c/Users/corey/ClionProjects/demo/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/cygdrive/c/Users/corey/ClionProjects/demo/cmake-build-debug/CMakeFiles/CMakeError.log".
Ich habe Windows 10 und VC 12.0 (Visual Studio 2013?). Ich habe versucht, CLion einzurichten, um Cygwin cmake anstelle der eingebauten Version zu verwenden, und ich habe versucht, alle relevanten Werkzeuge ohne Erfolg neu zu installieren.
MSVC in cygwin? Bist du sicher? – arrowd
CLion verwendet cmake und cygwin oder mingw, dann verwendet cmake standardmäßig VC. – coreyschram
Es sieht so aus, als ob es den gleichen Fehler auftritt, wenn man es anstelle von VC auf cygwins GCC setzt. – coreyschram