
12 Jan
2011
12 Jan
'11
3:40 p.m.
ERROR: error LNK2019: unresolved external symbol __imp__WaitForSingleObject__USE_VCR_MODE@8 referenced in function "public: void __thiscall boost::detail::basic_timed_mutex::lock(void)" (?lock@basic_timed_mutex@detail@boost@@QAEXXZ)
I am using Visual Studio 2010 and boost 1_45_0. The code is linking to libboost_thread-vc100-mt-s-1_45.lib in both the projects.
Maybe I'm mistaken, but it seems to me that CRT linkages of boost and your application do not match: libboost_thread-vc100-mt-s-1_45.lib -- uses static CRT __imp__WaitForSingleObject -- looks like you use /MD option in your code-generation settings, i.e. link CRT dynamically. Try to change this option to /MT.