Boost lib linker error Visual C++

错误类型:

找不到 'libboost_regex-vc80-mt-sgd-1_41.lib'  你自己的库文件里只有libboost_regex-vc80-mt-gd-1_41.lib 

 

别人的解释:Difference is clearly described in Boost docs - "mt-sgd" means "debug, statically linked runtime libraries, multithreaded, with debug symbols". "mt-gd" is the same, but using dynamically linked runtime libraries (i.e. msvcrtd.lib instead of libcmtd.lib).

 

解决方法:Either change project settings to use dynamic CRT linking (i.e. /MDd instead of /MTd), or build Boost using static linking - mixing those won't work properly.  即修改下图中的运行时库为/MDd

posted @ 2012-04-27 10:10  dorothychai  阅读(232)  评论(0编辑  收藏  举报