Hi,
i use cmake to build third library and cmake build success,but when i use vs2015 compile the project,there is an error of The C compiler is not able to compile a simple test program,i have test with different computer,the same error happen.can anyone
known how to fix it?
thank you
-- The C compiler identification is MSVC 19.16.27043.0
4>-- The CXX compiler identification is MSVC 19.16.27043.0
4>-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
4>-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- broken
4>CMake Error at C:/Program Files/CMake/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:60 (message):
4> The C compiler
4>
4> "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe"
4>
4> is not able to compile a simple test program.
4>
4> It fails with the following output:
4>
4> Change Dir: D:/Project/3dlib/VMTK/vmtk-bin/VMTK-Build/CMakeFiles/CMakeTmp
4>
4> Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe cmTC_0ea38.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m
4> 鐢ㄤ簬 .NET Framework 鐨?Microsoft (R) 鐢熸垚寮曟搸鐗堟湰 15.9.21+g9802d43bc3
4> 鐗堟潈鎵€鏈?C) Microsoft Corporation銆備繚鐣欐墍鏈夋潈鍒┿€?
4>
4> 鐢ㄤ簬 x86 鐨?Microsoft (R) C/C++ 浼樺寲缂栬瘧鍣?19.16.27043 鐗?
4> 鐗堟潈鎵€鏈?C) Microsoft Corporation銆備繚鐣欐墍鏈夋潈鍒┿€?
4>
4> testCCompiler.c
4> cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_0ea38.dir\Debug\\" /Fd"cmTC_0ea38.dir\Debug\vc141.pdb" /Gd /TC /analyze- /errorReport:queue "D:\Project\3dlib\VMTK\vmtk-bin\VMTK-Build\CMakeFiles\CMakeTmp\testCCompiler.c"
4>
4>cmTC_0ea38.dir\Debug\testCCompiler.obj : fatal error LNK1112: 妯″潡璁$畻鏈虹被鍨嬧€渪86鈥濅笌鐩爣璁$畻鏈虹被鍨嬧€渪64鈥濆啿绐?[D:\Project\3dlib\VMTK\vmtk-bin\VMTK-Build\CMakeFiles\CMakeTmp\cmTC_0ea38.vcxproj]
4>
4>
4>
4>
4> CMake will not be able to correctly generate this project.
4>Call Stack (most recent call first):
4> CMakeLists.txt:3 (project)
4>
4>
4>-- Configuring incomplete, errors occurred!