boostorg / thread

Boost.org thread module
http://boost.org/libs/thread
197 stars 162 forks source link

libboost-thread crash MFC application #306

Open sirc-yuv opened 4 years ago

sirc-yuv commented 4 years ago

Hello, I have built boost 1.71 static libraries to be used inside an MFC dll (windows 10) . I got all libboost ready and it's all OK when used regex. The presence of liboost-thread-vc140-mt-gd-x64-1_71 in the "additional libraries" in VS list in project settings causes a crash on loading the MFC dll that uses regex, even if Boost.Thread is not used, and headers not included. Just the presence in the list - cases a crash in the AfxCoreInitModule(); in MFC code. This probably has something to do with the AFX_MANAGE_STATE in MFC... Can someone please help? build command line s follows: .\b2.exe -j8 toolset=msvc-14.0 address-model=64 architecture=x86 stage link=static threading=multi runtime-link=shared --build-type=complete stage cxxflags="/D_AFXDLL" Thanks for any help!

viboes commented 4 years ago

I'm sorry. I don't have a Windows machine, and I don't know nothing at all about windows.