boostorg / boostorg/thread

Static linking of boost-thread in MFC-DLL and __pRawDllMain

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

Description

When we started using vcpkg we found a problem similar to this: https://stackoverflow.com/questions/3466944/upgrade-of-boost-1-35-to-1-43-causes-linker-error-with-prawdllmain-mfc-relate
There is a workaround here: https://svn.boost.org/trac10/ticket/8550

In our case however, we only see errors at run-time, not build-time. So more regressions could be lurking - the issue is boost-thread gets auto-linked by vcpkg _even in projects that are not using it_.

Another workaround is to change the linkage order but we don't explicitly set boost-thread as a linker dependency and it seems really crude to kludge it in.

So I am asking if anything has changed since 1.52 / 2011 how this can best be addressed?

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.