Opened 9 years ago

Closed 9 years ago

#8550 closed Patches (fixed)

[Boost.Thread] static linking of Boost.Thread with an MFC-Dll

Reported by: Tobias Loew Owned by: viboes
Milestone: Boost 1.54.0 Component: thread
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

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.

Attachments (2)

mfc_dll_thread.patch (3.6 KB ) - added by Tobias Loew 9 years ago.
mfc_dll_thread.2.patch (3.6 KB ) - added by Tobias Loew 9 years ago.

Download all attachments as: .zip

Change History (7)

by Tobias Loew, 9 years ago

Attachment: mfc_dll_thread.patch added

by Tobias Loew, 9 years ago

Attachment: mfc_dll_thread.2.patch added

comment:1 by viboes, 9 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 by Tobias Loew, 9 years ago

The two attachments are identical, I accidentally added it twice.

comment:3 by viboes, 9 years ago

Milestone: To Be DeterminedBoost 1.55.0

comment:4 by viboes, 9 years ago

Milestone: Boost 1.55.0Boost 1.54.0

Committed in trunk [84684]

comment:5 by viboes, 9 years ago

Resolution: fixed
Status: assignedclosed

(In [84717]) Thread: fix #8550, #8671, #8672.

Note: See TracTickets for help on using tickets.