boostorg / boostorg/thread

libboost-thread crash MFC application

Open
#306 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
214
Forks
171
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.