Anthony Williams schrieb:
Markus Werle
writes: In order to add to the headache, here is a "workaround":
Add libboost_thread-vc90-mt-1_37.lib to the "Ignore Specific Library" linker property section, add boost_thread-vc90-mt-gd-1_37.lib to the "Additional Dependencies", et voila: after copying its sister boost_thread-vc90-mt-gd-1_37.dll into the directory of the executable, the executable runs fine.
You've forcibly replaced the static library with the DLL here. You're better off defining the right compiler+preprocessor directives to ensure that it is automatically selected. That way you'll ensure that the code in the main EXE is compatible with that in the DLL.
Unfortunately, I can't remember what the required settings are at the moment.
Maybe you should use BOOST_ALL_DYN_LINK.