Mixing a dll boost library with a static runtime is a really bad idea错误的解决
来源:互联网 发布:淘宝手机如何改差评 编辑:程序博客网 时间:2024/06/14 09:46
作者:朱金灿
来源:http://blog.csdn.net/clever101
同事在使用boost库时遇到一个问题,在编译时出现一个错误:Mixing a dll boost library with a static runtime is a really bad idea。我查看了一下,发现他是使用动态链接boost库的,即定义了预处理器:BOOST_ALL_DYN_LINK。我想了一下,明白了这是因为错误链接了运行库造成的,改了一下程序的运行库,将“多线程调试(/MTd)”改为“多线程调试DLL(/MDd)”,具体如下图:
也就是说在使用boost库时凡是定义了BOOST_ALL_DYN_LINK和BOOST_DYN_LINK,运行库需要选择为多线程调试DLL。
0 0
- Mixing a dll boost library with a static runtime is a really bad idea错误的解决
- Use MFC in a Static Library 和 use MFC in a Shared DLL 的区别
- Parajumpers Jacka is really a sand pig
- Creating a Static Library with Xcode 4.6 or Higher
- How to check a static library is built contain bitcode?
- 关于Use MFC in a Shared DLL和Use MFC in a Static Library 转换遇到的问题
- Eclipse is running in a JRE, but a JDK is required错误的解决
- Eclipse is running in a JRE, but a JDK is required错误的解决
- Eclipse is running in a JRE, but a JDK is required错误的解决
- Eclipse is running in a JRE, but a JDK is required错误的解决
- undefined is not a function错误解决
- TF53011 xxx is not a licensed user错误的解决
- ...arch/arm: Is a directory. Stop." 的错误解决
- Use MFC in a Static Library 和 use MFC in a Shared DLL 区别
- What is a Good Library!
- c++ 编译错误is not a static member of ...
- A project with an Output Type of Class Library cannot be started directly的解决
- Down with a bad cough these days
- RFC2326(中文版)-实时流协议(RTSP)
- 247 MIT6.828 hw0-shell.c
- 猜数字游戏代码
- 尔雅,大学生创业基础期末考试99分答案
- [BZOJ3600][没有人的算术][替罪羊树+线段树]
- Mixing a dll boost library with a static runtime is a really bad idea错误的解决
- NAV 网格导航寻路
- Android发送通知栏消息
- 弹性布局基础讲解与高效应用
- windows下redis安装和使用(php)
- Mysql创建数据库时,发生了什么
- 《文化地理》期末考试满分答案
- 一些看过的比较的好的技术文章
- FrmReturnVisit.Designer