Nic*_*ick 5 c++ boost visual-studio-2008
谷歌一直不友善...
我最近降低了Boost 1.50,并尝试使用它来构建我的项目。这是一个大型项目,使用了一些增强功能(线程,信号,指针类,主体等)。一些细节:
 
-MSVC 9.0(2008)
 -静态链接提升
链接每个生成的exe时出现错误,但使用chrono时却不直接链接。错误是:
libboost_thread-vc90-mt-sgd-1_50.lib(thread.obj) : error LNK2019: unresolved external symbol "public: static class boost::chrono::time_point<class boost::chrono::system_clock,class boost::chrono::duration<__int64,class boost::ratio<1,10000000> > > __cdecl boost::chrono::system_clock::now(void)" (?now@system_clock@chrono@boost@@SA?AV?$time_point@Vsystem_clock@chrono@boost@@V?$duration@_JV?$ratio@$00$0JIJGIA@@boost@@@23@@23@XZ) referenced in function "public: bool __thiscall boost::thread::try_join_until(class boost::chrono::time_point<class boost::chrono::system_clock,class boost::chrono::duration<__int64,class boost::ratio<1,1000000000> > > const &)" (?try_join_until@thread@boost@@QAE_NABV?$time_point@Vsystem_clock@chrono@boost@@V?$duration@_JV?$ratio@$00$0DLJKMKAA@@boost@@@23@@chrono@2@@Z)
我看到了这个问题,但是我没有直接控制链接的顺序(而是使用自动链接功能)。如果我缺少特定的库,可以手动链接它;次优,但可能。但是,我不知道缺少了什么。在我的半文教徒看来,该符号在chrono库中而不在系统库中是外部的。
有什么帮助吗?