Adding #include <boost/thread/mutex.hpp> breaks my ActiveX control?

旧城冷巷雨未停 提交于 2019-11-28 11:26:27
Paolo Brandoli

Have you tried linking boost::thread dynamically (define BOOST_THREAD_DYN_LINK)?

I had this kind of problems when using boost::thread with a mixed C++/.NET project and linking just boost::thread dynamically was the solution (here a possible explanation: http://article.gmane.org/gmane.comp.lib.boost.user/22617/match=clr)

Since Boost 1.52 you could try adding this line to your code, especially if you prefer static linking:

#include <boost/thread/win32/mfc_thread_init.hpp>

Source: Boost Ticket 8550

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!