Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor regression with toolset v141_xp (Visual Studio 2017 - Windows XP) #111

Closed
thebrandre opened this issue Aug 16, 2023 · 1 comment
Closed

Comments

@thebrandre
Copy link

Before boost version 1.83 and commit 32dbf1b it was possible to compile for Windows XP by setting just the one define define=BOOST_USE_WINAPI_VERSION=0x0501 as an argument for b2.

Now it is also required to add define=_USING_V110_SDK71_. Otherwise you'll get a linker error:

msvcprt.lib(sharedmutex.obj) : error LNK2019: unresolved external symbol __imp_ReleaseSRWLockExclusive referenced in function _Smtx_unlock_exclusive
msvcprt.lib(sharedmutex.obj) : error LNK2019: unresolved external symbol __imp_ReleaseSRWLockShared referenced in function _Smtx_unlock_shared
msvcprt.lib(sharedmutex.obj) : error LNK2019: unresolved external symbol __imp_AcquireSRWLockExclusive referenced in function _Smtx_lock_exclusive
msvcprt.lib(sharedmutex.obj) : error LNK2019: unresolved external symbol __imp_AcquireSRWLockShared referenced in function _Smtx_lock_shared
msvcprt.lib(sharedmutex.obj) : error LNK2019: unresolved external symbol __imp_TryAcquireSRWLockExclusive referenced in function _Smtx_try_lock_exclusive
msvcprt.lib(sharedmutex.obj) : error LNK2019: unresolved external symbol __imp_TryAcquireSRWLockShared referenced in function _Smtx_try_lock_shared

It is not a big deal because we should have been adding this define all along. So there is not actually a need for action here and you can simply close the issue.
I just wanted to point it out in case anyone has a similar problem because, unfortunately, this was not quite so easy to trace back.

@pdimov
Copy link
Member

pdimov commented Sep 5, 2023

A similar problem has been reported in #113 and the fix a57c568 should make this no longer an issue, even though defining _USING_V110_SDK71_ is still a good idea.

@pdimov pdimov closed this as completed Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants