VS2013使用boostregex遭遇无法打开libboost_regex-vc120-mt-sgd-1_62.lib的问题
来源:互联网 发布:重装开票软件 编辑:程序博客网 时间:2024/06/13 22:45
VS2013使用boostregex遭遇无法打开libboost_regex-vc120-mt-sgd-1_62.lib的问题
通过Boost库可以在C++项目中使用正则表达式,配置好环境后链接过程出现”无法打开libboost_regex-vc120-mt-sgd-1_62.lib”的错误.
原因是按照官方生成lib的方法没有生成libboost_regex-vc120-mt-sgd-1_62.lib,需要自己生成这个静态库.
解决方案
- 以我本地环境为例:
在Boost解压出来的目录下D:\boost_1_62_0运行cmd,输入并执行命令:
bjam stage --toolset=msvc-12.0 --stagedir="D:\boost" link=static runtime-link=static threading=multi debug release
其中”D:\boost”目录可自行指定,用于存放生成的lib文件.
执行完毕后将lib存放的目录”D:\boost\lib”添加项目依赖的库目录中
项目属性->配置属性->C/C++->代码生成->运行库 设置为 多线程调试 (/MTd)
根据libboost_regex-vc120-mt-sgd-1_62.lib文件命名 mt 表示多线程 s表示static静态d表示debug
1 0
- VS2013使用boostregex遭遇无法打开libboost_regex-vc120-mt-sgd-1_62.lib的问题
- 无法打开 libboost_regex-vc80-mt-sgd-1_51.lib
- 错误4error LNK1104: 无法打开文件“libboost_date_time-vc120-mt-sgd-1_64.lib”
- 无法打开 libboost_regex-vc90-mt-gd-1_44.lib
- 无法打开 libboost_regex-vc90-mt-gd-1_44.lib
- 无法打开文件“libboost_thread-vc120-mt-gd-1_58.lib
- 编译caffe时,遇到问题:无法打开文件“libboost_thread-vc120-mt-gd-1_58.lib
- 编译 文件“libboost_log-vc120-mt-sgd-1_59.lib”
- 编译 文件 libboost_log-vc120-mt-sgd-1_59.lib
- Boost c++ LNK1104cannot open file 'libboost_program-options-vc120-mt-gd-1_62.lib' error
- 无法打开文件“libboost_filesystem-vc140-mt-sgd-1_61.lib”
- 无法打开文件"libboost_thread-vc141-mt-sgd-1_65_1.lib"
- fatal error LNK1104: 无法打开文件“libboost_regex-vc80-mt-gd-1_46_1.lib”
- LINK : fatal error LNK1104: 无法打开文件“libboost_serialization-vc90-mt-gd-1_62.lib”
- LINK : fatal error LNK1104: 无法打开文件“libboost_serialization-vc90-mt-gd-1_62.lib”
- LINK : fatal error LNK1104: 无法打开文件“libboost_serialization-vc90-mt-gd-1_62.lib”
- LINK : fatal error LNK1104: cannot open file 'libboost_filesystem-vc120-mt-sgd-1_63.lib'
- 新手,Visual Studio 2013 配置Boost库。 如何编译和选择,遇到无法打开文件“libboost_thread-vc120-mt-gd-1_58.lib的解决办法
- 走进AngularJs(四)自定义指令----(中)
- STL-stack(栈)
- msyql 简单的sql优化
- 服务注册失败问题
- STUN协议
- VS2013使用boostregex遭遇无法打开libboost_regex-vc120-mt-sgd-1_62.lib的问题
- 初涉web前端
- Android - ScrollView嵌套ListView~使ListView不滚动
- SharedPreferences处理数据工具类
- 最长公共子序列与最长公共子串(DP)
- 构造网络数据包(TCP,IP等)时其中checksum字段的处理
- CMake Error at CMakeLists.txt:14 (INCLUDE_FOR_PROJECT): Unknown CMake command"INCLUDE_FOR_PROJECT"
- keil调试 *** Error 65: Access violation at 0x00000004 : No 'write' permission问题解决方法
- cocoapod 遇到的一些问题