c++ - 如何在 Windows 上设置 cmake

标签 c++ windows boost visual-studio-2013 cmake

我正在尝试编译一个需要在 Windows 上使用 Cmake 和 boost 的程序。我安装了 visual studio 2013 express,但无法使用 cmake 来编译程序。

cmake -G "Visual Studio 11 Win64" ..

-- The C compiler identification is unknown
-- The CXX compiler identification is unknow
CMake Error in :
No CMAKE_C_COMPILER could be found.

CMake Error in :
No CMAKE_CXX_COMPILER could be found.

最佳答案

Visual Studio 11 Win64 是 Visual Studio 2013 的错误生成器。如果您使用的是 cmake-3.x 或 <,则需要使用 Visual Studio 12 2013 Win64 strong>适用于 cmake-2.8.x 的 Visual Studio 12 Win64。 visual studio generators is here的列表.

关于c++ - 如何在 Windows 上设置 cmake,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26514500/

相关文章:

c++ - 当 DPI 感知、全屏和无框时,在 WM_NCACTIVATE 上删除客户区

windows - 如何让windows安装更快

windows - 如何在批处理文件中引用随机数(%random%)

Windows 命令 : how do I push current directory using chdir for popping later?

c++ - 使用boost序列化读取批量大小的二进制文件

c++ - 使用默认 mt19937 RNG 生成的 boost UUID 是否对 session ID 安全?

c++ - 两个方括号重载

c++ - 为什么openCV的convertto函数不起作用?

python - 添加swig pythoncode以在Python对象上设置thisown标志

c++ - 如何使用 C++ boost 库为特定线程定义堆栈大小?