在CLR使用boost [英] Using boost in CLR
本文介绍了在CLR使用boost的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个像这个的问题,但答案没有帮助。
我在H和CPP文件(使用提升)和主CPP文件中的一些类。主要包括CPP这些.h文件。
包括我这个在主CPP(如在答案):
I have problem like this, but answer did not help. I have some classes in h and cpp files(which uses boost), and main cpp file. Main cpp include these h files. I include this in main cpp(like in the answer):
namespace boost {
struct thread::dummy {};
namespace detail {
namespace win32 {
struct _SECURITY_ATTRIBUTES: public ::_SECURITY_ATTRIBUTES {};
};
};
};
和摆脱这样的:
警告1警告LNK4248:无法解析typeref令牌(0100001F)为'boost.detail.win32._SECURITY_ATTRIBUTES';图像可能无法运行
但还是得到这样的:应用程序无法正常启动(0xc000007b)
这是什么问题?
谢谢!
推荐答案
解决方案:
#define BOOST_THREAD_DYN_LINK
这篇关于在CLR使用boost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文