On Wed, May 6, 2015 at 11:25 AM, Fu ji
Do you link to Boost.Thread built as a shared library (dll)? Both libraries must use Boost.Thread dll because it maintains a global list of thread_specific_ptr storage objects internally.
This could be a problem, in both solutions I have in Properties:
Additional Include Directories: ..\3rdParty\Common\include\boost (here I have .hpp files)
and in Linker: Additional Library Directories: ..\3rdParty\$(Platform)\VC12\lib and here I have libboost_thread-vc120-mt-1_57.lib
I don't use Windows but AFAIR the library name should be something like boost_thread-vc120-mt-1_57.lib (note no leading 'lib') and a similarly named dll. If you don't have these you will have to rebuild boost. Make sure you add 'link=shared' to b2 command line.
May I do this in some other way ? I read that I can achieve that by define: #define BOOST_ALL_DYN_LINK in pre-compiled header stdafx.h
Yes, BOOST_ALL_DYN_LINK must be defined when you build both your libraries.