怎样在VS2013中安装vs2010配置boostt

怎样在VS2013中安装配置boost_百度知道
怎样在VS2013中安装配置boost
提问者采纳
包含头文件#include 在项目中任意一个,DX库已集成到VS中.lib& ) 编写D3D9代码, &quot.cpp文件添加 #pragma comment( libVS2013不需要配置什么环境;d3d9
来自团队:
其他类似问题
为您推荐:
boost的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁VS2013配置Caffe卷积神经网络工具_图文_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
VS2013配置Caffe卷积神经网络工具
上传于||文档简介
&&配​置​C​a​f​f​e​的​第​一​步​,​准​备​各​种​依​赖​库
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
下载文档到电脑,查找使用更方便
还剩10页未读,继续阅读
你可能喜欢Windows&7&64bit和Visual&Studio&2010下安装及使用Boost&1.47.0
Boost库是一个经过千锤百炼、可移植、提供源代码的C++库,作为标准库的后备,是C++标准化进程的发动机之一。
Boost库由C++标准委员会库工作组成员发起,在C++社区中影响甚大,其成员已近2000人。本文主要介绍了如何安装及使用Boost
参考网页:
在下载最新版Boost库。解压后将其复制到指定位置。
&&& 2). 打开Visual
Studio Command
Prompt,进入解压后的Boost目录。输入bootstrap,等待其生成Boost构建工具bjam。
在命令行输入bjam toolset=msvc-10.0 variant=debug,release threading=multi
link=static。然后等待安装完成。如果要生成64位库,键入命令bjam toolset=msvc-10.0
variant=debug,release threading=multi link=static
address-model=64。
安装完成后,屏幕上会提示"The Boost C++ Libraries were successfully
built!"。并制定头文件和库文件目录。
新建一个win32控制台程序,命名为Boost_Test。代码后附。
&&& 6). 在Project
-& Boost_Test Properties -&
Configuration Properties -& C/C++ -&
General -& Additional Include Directories
中增加头文件路径。
&&& 7). 在Project
-& Boost_Test Properties -&
Configuration Properties -& Linker -&
General -& Additional Library Directories
中增加库文件路径。这里我们不用制定需要链接的静态库,Boost会自动加载需要的库文件。
编译,链接,测试结果如下。
Boost_Test.cpp代码
// Boost_Test.cpp : Defines the entry point for the console
application.
#include "stdafx.h"
#include &iostream&
#include &boost/shared_ptr.hpp&
#include &boost/regex.hpp&
struct Hello
&& "Hello constructor"
&& "Hello destructor"
cin.get();
int _tmain(int argc, _TCHAR* argv[])
&&& boost::regex
regex("^(Hello|Bye) Boost$");
boost::cmatch helloM
boost::regex_search("Hello Boost", helloMatches, regex);
&& "The word between () is: "
&& helloMatches[1]
boost::shared_ptr&Hello&
sharedHello(new Hello);
cin.get();
&&& return
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

我要回帖

更多关于 vs2013配置boost 的文章

 

随机推荐