[Boost.Thread] static linking of Boost.Thread with an MFC-Dll
As there are several mail-threads on the above topic, I gave it a try and came up with a solution that let's regular MFC-Dlls work with static linked boost-threads:
Just include boost/thread/win32/mfc_thread_init.hpp in the MFC-Dll code, then the MFC-Dll initialization code will be called.
The solution has no impact on non-MFC code.
I tested the code with VS 2012. But it should work at least with VS 2008.
Change History
(7)
Owner: |
changed from Anthony Williams to viboes
|
Status: |
new → assigned
|
Milestone: |
To Be Determined → Boost 1.55.0
|
Milestone: |
Boost 1.55.0 → Boost 1.54.0
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
The two attachments are identical, I accidentally added it twice.