cLion VS 2015 support not working anymore?

已完成

Hey

I remember when vs2015 was introduced in EAP it was working. But lately I have a need to use the older VS and I can't get it to run - vs2017 works fine. I end up with this error :

 

-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- broken
CMake Error at C:/Program Files/JetBrains/CLion 2017.3/bin/cmake/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
14.0/VC/bin/amd64/cl.exe" is not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/Users/Master/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeTmp

 

Run Build Command:"nmake" "/NOLOGO" "cmTC_4e005\fast"

"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\amd64\nmake.exe" -f CMakeFiles\cmTC_4e005.dir\build.make
/nologo -L CMakeFiles\cmTC_4e005.dir\build

Building C object CMakeFiles/cmTC_4e005.dir/testCCompiler.c.obj

C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe
@C:\Users\Master\AppData\Local\Temp\nmE33F.tmp

testCCompiler.c

Linking C executable cmTC_4e005.exe

"C:\Program Files\JetBrains\CLion 2017.3\bin\cmake\bin\cmake.exe" -E
vs_link_exe --intdir=CMakeFiles\cmTC_4e005.dir --manifests --
C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo
@CMakeFiles\cmTC_4e005.dir\objects1.rsp
@C:\Users\Master\AppData\Local\Temp\nmE38E.tmp

RC Pass 1 failed to run.

NMAKE : fatal error U1077: '"C:\Program Files\JetBrains\CLion
2017.3\bin\cmake\bin\cmake.exe"' : return code '0xffffffff'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'

Stop.

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)


-- Configuring incomplete, errors occurred!
See also "C:/Users/Master/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Master/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeError.log".

Error code: 1

0

Hi!

Sorry for the late response. CLion should work with Visual Studio 2013, 2015 or 2017 with C++ support. Could you please try the latest stable release (2018.1.2)? Is the issue still actual?

0

Not sure I moved to 2017, all seem to be fine thanks! 

 

 

0

请先登录再写评论。