加强与MSVC 11(VS 2012)编译 [英] Boost compiling with MSVC 11 (VS 2012)

查看:627
本文介绍了加强与MSVC 11(VS 2012)编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何打造的升压的(我试过版本 1.48.0 )与 Visual Studio的C ++ 11 bootstrap.bat 找不到工具 VC11 。我添加工具VC11到 F:\\程序\\ boost_1_48_0 \\工具\\编译\\ V2 \\发动机\\的build.bat 但得到的消息:

How to build Boost (I tried version 1.48.0) with Visual Studio C++ 11? bootstrap.bat cannot find toolset vc11. I added toolset vc11 to F:\Programming\boost_1_48_0\tools\build\v2\engine\build.bat but got a message:

ERROR: Cannot determine the location of the VS Common Tools folder.

修改费鲁乔回答适用于VS 2012防爆preSS和Boost 1.51.0了。

The Ferruccio answer works for VS 2012 Express and Boost 1.51.0 too.

推荐答案

我设法得到它通过以下步骤来构建:

I managed to get it to build by following these steps:


  1. 打开一个Visual Studio命令提示符。从开始菜单是:所有程序|微软的Visual Studio 11 | 64原住民命令提示符

  2. 解压boost_1_48_0.zip和设置工作目录boost_1_48_0

  3. 运行bootstrap.bat

  4. 运行bjam.exe

它确实产生了很多不能够检测工具包版本的警告,但也无妨进行。

It does generate a lot of warnings about not being able to detect the toolkit version, but it proceeds anyway.

更新:我创建GitHub库称为 cclibs 这使得它易于构建升压和其他一些C ++库。

Update: I created GitHub repo called cclibs which makes it simpler to build Boost and some other C++ libraries.

这篇关于加强与MSVC 11(VS 2012)编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆