Clion compiler error. not sure how to fix or what ive done wrong

0

CMake Error at C:/Program Files/JetBrains/CLion 2019.2.4/bin/cmake/win/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler

"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx86/x86/cl.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/Users/Connor/CLionProjects/untitled6/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):nmake /nologo cmTC_5b714\fast &&   "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_5b714.dir\build.make /nologo -L                  CMakeFiles\cmTC_5b714.dir\build
Building C object CMakeFiles/cmTC_5b714.dir/testCCompiler.c.obj
    C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1424~1.283\bin\Hostx86\x86\cl.exe @C:\Users\Connor\AppData\Local\Temp\nm6251.tmp
testCCompiler.c
Linking C executable cmTC_5b714.exe
    "C:\Program Files\JetBrains\CLion 2019.2.4\bin\cmake\win\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_5b714.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1424~1.283\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\cmTC_5b714.dir\objects1.rsp @C:\Users\Connor\AppData\Local\Temp\nm639A.tmp
RC Pass 1: command "rc /fo CMakeFiles\cmTC_5b714.dir/manifest.res CMakeFiles\cmTC_5b714.dir/manifest.rc" failed (exit code 0) with the following output:
The system cannot find the file specifiedNMAKE : fatal error U1077: '"C:\Program Files\JetBrains\CLion 2019.2.4\bin\cmake\win\bin\cmake.exe"' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.

CMake will not be able to correctly generate this project.

clion
asked on Stack Overflow Feb 27, 2020 by Parzival55

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0