C ++在环境变量RC中找不到编译器集

时间:2018-11-06 11:28:40

标签: c++ cmake clang rc

我正在尝试使用cmake使用clang编译C ++程序,但是出现以下错误:

> CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeDetermineRCCompiler.cmake:20 (message):
  Could not find compiler set in environment variable RC:

>  C:\Program Files (x86)\Microsoft Visual
  Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\Hostx64\x64.
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.12/Modules/Platform/Windows-MSVC.cmake:380 (enable_language)
  C:/Program Files/CMake/share/cmake-3.12/Modules/Platform/Windows-Clang.cmake:16 (__windows_compiler_msvc)
  C:/Program Files/CMake/share/cmake-3.12/Modules/Platform/Windows-Clang-C.cmake:2 (__windows_compiler_clang)
  C:/Program Files/CMake/share/cmake-3.12/Modules/CMakeCInformation.cmake:48 (include)
  CMakeLists.txt:18 (project)

可能是什么问题?搜索了所有互联网,但没有找到答案。预先感谢!

0 个答案:

没有答案