简体   繁体   English

在Visual C ++中以发布模式使用boost的调试库

[英]Debug libraries of boost getting used in Release mode in visual c++

I have written a DLL that uses boost extensively in its implementation. 我已经编写了一个在实现过程中广泛使用boost的DLL。 I have both release and debug version of boost libraries with me libboost_thread-vc80-mt-1_40.lib, libboost_thread-vc80-mt-gd-1_40.lib. 我有libboost_thread-vc80-mt-1_40.lib,libboost_thread-vc80-mt-gd-1_40.lib的Boost库的发布和调试版本。 I am using Visual studio to build my code and using auto-linking. 我正在使用Visual Studio构建代码并使用自动链接。 When i build the DLL in debug version it links itself with libboost_thread-vc80-mt-gd-1_40.lib which is expected, but when i am building my DLL in release mode it stills tries to link it with libboost_thread-vc80-mt-gd-1_40.lib instead of libboost_thread-vc80-mt-1_40.lib. 当我在调试版本中构建DLL时,它将自身与预期的libboost_thread-vc80-mt-gd-1_40.lib链接,但是当我以发布模式构建DLL时,它仍然尝试将其与libboost_thread-vc80-mt-链接。 gd-1_40.lib而不是libboost_thread-vc80-mt-1_40.lib。 I am using /MD while building in release mode. 我在发布模式下构建时正在使用/ MD。 I am not sure what i am missing in this, can someone please point me that. 我不确定我在这方面缺少什么,有人可以指出这一点。

您是否尝试过/ MT而不是/ MD?

查看发布配置中是否存在带有调试字的预处理器定义,如果存在,则必须将其删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 调试模式与发布模式下的Visual Studio(C ++)调试 - Visual Studio (C++) debugging in debug mode vs release mode 运行时如何在 Visual Studio C++ 中确定调试或发布模式 - Runtime how to determine Debug or release mode in visual studio c++ Boost Debug和Release Libraries是一样的吗? - Are Boost Debug and Release Libraries the same? Visual Studio在发布模式下找不到boost包含文件(在调试中工作) - Visual Studio not finding boost include files in release mode (works in debug) boost :: interprocess :: message_queue使用Visual C ++停止在发布模式下工作 - boost::interprocess::message_queue stops working in Release mode with visual C++ Visual C++:作为“多线程调试 DLL”的发布模式运行时库 - Visual C++: Runtime Library of Release Mode as 'Multi-threaded Debug DLL' C ++以发布模式进行构建,库处于调试模式 - c++ build with release mode with library in debug mode Visual C ++ - 为什么要使用调试模式呢? - Visual C++ - Why bother with Debug Mode? 在 Visual C++ 2005 中开发的 Visual C++ 项目 - 在 Visual C++ 2010 中,调试断言在菜单打开时失败,但修复模式如何工作? - Visual C++ project developed in Visual C++ 2005 - In Visual C++ 2010, debug assertion fails on menu open, but release mode works, how to fix? C ++和Boost库 - C++ and boost libraries
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM