0
我需要編譯boost 1.39.0 library,在這個版本上,不提供安裝程序才能運行Visual Studio 2008
解決方案。 Cmake
拋出這個異常。如何使用Visual c + +編譯器運行Cmake for boost 1.39.0 building library
-- Building for: Visual Studio 9 2008
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt: 28 (project):
No CMAKE_C_COMPILER could be found.
No CMAKE_CXX_COMPILER could be found.
我搞不清楚我怎麼能指定它可以找到視覺工作室編譯器。
我使用boost 1.39.0
與CMake 3.0.0
親切的問候。
這個問題似乎是無關緊要的,因爲它不是英文 – Steve
你可以在調用'cmake'之前設置'CC'和'CXX'環境變量指向VS2008的'cl.exe'。 [見此](http://www.cmake.org/Wiki/CMake_FAQ#How_do_I_use_a_different_compiler.3F)。 – Cameron
爲您提供幫助彼得,但我怎麼可以用Windows中的命令行來做到這一點,我看到它參考了Linux的指令。 – Wiist