boost程序库里有哪些设计模式
1个回答
展开全部
1.模块/工具简介
Boost库跨平台源并且完全免费C++库内容涵盖字符串处理、则表达式、容器与数据结构、并发编程、函数式编程、泛型编程、设计模式实现等许领域使实际发更加灵高效(
2.系统要求
Windows xp
3.部署步骤
(1)选择载Boost库Windows版安装包解压至硬盘任意目录(建议硬盘根目录)面用$BOOSTDIR表示boost存放目录
(2)解压文件夹找bootstrap.bat并运行bjam执行程序,运行即
(3)编译完bin.v2stage目录面包含*.lib库文件
(4)配置vs环境创建测试项目test工具栏项目->右键->test属性->配置属性->C/C++->规->附加包含目录添加$BOOSTDIR路径(C:\boost_1_54_0;)链接器->规->附加库目录添加$BOOSTDIR\stage\libs(C:\boost_1_54_0\stage\lib\*.lib)应用并确定boost库win32环境部署功
4.能遇问题
(1)LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc100-mt-s-1_52.lib'
库文件看存libboost_thread-vc100-mt-1_52.lib两者差别呢
-s
ABI tag: encodes details that affect the library's interoperability with other compiled code. For each such feature, a single letter is added to the tag:
Key
Use this library when:
Boost.Build option
s linking statically to the C++ standard library and compiler runtime support libraries. runtime-link=static
g using debug versions of the standard and runtime support libraries. runtime-debugging=on
y using a special debug build of Python. python-debugging=on
d building a debug version of your code.7 variant=debug
p using the STLPort standard library rather than the default one supplied with your compiler. stdlib=stlport
For example, if you build a debug version of your code for use with debug versions of the static runtime library and the STLPort standard library in native iostreams mode, the tag would be:-sgdpn. If none of the above apply, the ABI tag is ommitted.
原-s 代表 runtime-link-static"我工程用种式使用boost库需要'libboost_thread-vc100-mt-s-1_52.lib'
解决案:
重新编译boost库用面编译命令:
b2 --build-type=complete msvc stage link=static
(2)Already defined in libcmt.lib
解决案参加篇文章
附:VS2011 静态链接 Boost 函数库配置:
打项目属性->配置属性->C/C++->代码选择运行库线程 (/MT)(选择线程 DLL (/MD)则态链接 Boost 库)
(3)想改变编译配置boost_1_54_0\tools\build\v2 user-config.jam文件bootstrap.batbjam实际都目录
Boost库跨平台源并且完全免费C++库内容涵盖字符串处理、则表达式、容器与数据结构、并发编程、函数式编程、泛型编程、设计模式实现等许领域使实际发更加灵高效(
2.系统要求
Windows xp
3.部署步骤
(1)选择载Boost库Windows版安装包解压至硬盘任意目录(建议硬盘根目录)面用$BOOSTDIR表示boost存放目录
(2)解压文件夹找bootstrap.bat并运行bjam执行程序,运行即
(3)编译完bin.v2stage目录面包含*.lib库文件
(4)配置vs环境创建测试项目test工具栏项目->右键->test属性->配置属性->C/C++->规->附加包含目录添加$BOOSTDIR路径(C:\boost_1_54_0;)链接器->规->附加库目录添加$BOOSTDIR\stage\libs(C:\boost_1_54_0\stage\lib\*.lib)应用并确定boost库win32环境部署功
4.能遇问题
(1)LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc100-mt-s-1_52.lib'
库文件看存libboost_thread-vc100-mt-1_52.lib两者差别呢
-s
ABI tag: encodes details that affect the library's interoperability with other compiled code. For each such feature, a single letter is added to the tag:
Key
Use this library when:
Boost.Build option
s linking statically to the C++ standard library and compiler runtime support libraries. runtime-link=static
g using debug versions of the standard and runtime support libraries. runtime-debugging=on
y using a special debug build of Python. python-debugging=on
d building a debug version of your code.7 variant=debug
p using the STLPort standard library rather than the default one supplied with your compiler. stdlib=stlport
For example, if you build a debug version of your code for use with debug versions of the static runtime library and the STLPort standard library in native iostreams mode, the tag would be:-sgdpn. If none of the above apply, the ABI tag is ommitted.
原-s 代表 runtime-link-static"我工程用种式使用boost库需要'libboost_thread-vc100-mt-s-1_52.lib'
解决案:
重新编译boost库用面编译命令:
b2 --build-type=complete msvc stage link=static
(2)Already defined in libcmt.lib
解决案参加篇文章
附:VS2011 静态链接 Boost 函数库配置:
打项目属性->配置属性->C/C++->代码选择运行库线程 (/MT)(选择线程 DLL (/MD)则态链接 Boost 库)
(3)想改变编译配置boost_1_54_0\tools\build\v2 user-config.jam文件bootstrap.batbjam实际都目录
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询