升压1.37 pre-专为MSVC [英] Boost 1.37 pre-built for MSVC

查看:202
本文介绍了升压1.37 pre-专为MSVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能找到一个pre-专为升压1.37.0集MSVC ++库中,只有源。我不明白他们怪异的编译系统是如何工作的?还有什么地方我能找到一个下载Visual Studio项目或什么的?

I can't find a pre-built set of MSVC++ libs for Boost 1.37.0, only the source. I don't understand how their weird build system works... are there any places I can find a download of a visual studio project or something?

推荐答案

借助 BoostPro计算乡亲保持加速的Windows安装程序,但它通常需要几个星期对他们提出了新版本的在线。它尚未为1.37。

The BoostPro Computing folks maintain the Boost installer for Windows but it usually take a few weeks for them to put new versions online. It's not yet up for 1.37.

有没有Visual Studio解决方案(记住,升压目标的平台)虽然有努力也支持的建设加速与CMake的。我不知道走多远,他们得到了1.37,但我相信它仍然是初期这个过程。

There's no Visual Studio solution (remember, Boost targets many platforms) though there is an effort to also support building Boost with CMake. I'm not sure how far along they got for 1.37 but I believe it's still early days for this process.

然而,标准的编译系统是不是的的怪异!由下载的bjam 了解您的平台开始(寻找后缀ntx86适用于Windows),并在您的路径某处安装它(C:/ Windows的/ System32)中。然后下载,uncom preSS并运行在命令行编译系统。它会是这个样子的Visual Studio用户:

However the standard build system isn't that weird! Start by downloading bjam for your platform (look for a suffix of 'ntx86' for Windows) and installing it somewhere in your path (C:/Windows/System32). Then download the source, uncompress it and run the build system from the command line. It'll look something like this for Visual Studio users:

bjam --build-dir="C:\boostsource" --toolset=msvc --build-type=complete stage

这是解除pretty从很多入门指南其进入更​​多的细节。如果你的当前目录是源根不需要集结目录。

This is lifted pretty much from the Getting Started Guide which goes into much more detail. The build-dir is not needed if you're current directory is the root of the source.

在等待了几个小时的一切建设后(完整意味着它会建立调试,发布,单/多线程,静态/动态,静态/动态链接到运行时 - 和组合的),你会在阶段/ lib目录目录下的所有库的结束。

After waiting a couple of hours for everything to build ('complete' means that it'll build debug, release, single/multi threaded, static/dynamic, static/dynamic linking to the runtimes - and combinations) you'll end up with all of the libs in a 'stage/lib' directory.

最后,你需要告诉的Visual Studio在哪里可以找到头文件和库。进入工具 - >选项 - >项目和解决方案 - > VC ++目录。添加条目包含文件(如C:\\ boostsource)。添加一个条目为库文件(C:\\ boostsource \\阶段\\ lib目录)。

Finally you need to tell Visual Studio where to find the headers and libs. Go to Tools->Options->Projects and Solutions->VC++ Directories. Add an entry for "Include files" (like "C:\boostsource"). Add an entry for "Library files" ("C:\boostsource\stage\lib").

这篇关于升压1.37 pre-专为MSVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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