Skip to content

Linker error building Boost.Log with _WIN32_WINNT >= 0x0602 #177

@chrullrich

Description

@chrullrich

Hello,

when using /DBOOST_USE_WINAPI_VERSION=0x0602 /D_WIN32_WINNT=0x0602 /DWINVER=0x0602 or higher, the build of Boost.Log fails due to linker errors involving two missing symbols, WaitOnAddress and WakeByAddressSingle. These functions were introduced in Windows 8, i.e. 0x0602, and according to MSDN, their import library is synchronization.lib. This library is not mentioned on the linker command line or any build system files.

I added it to build/Jamfile.v2 and the library built successfully, but I'm far from an expert in Boost's build system. I'm also doing everything via vcpkg, which probably introduces even more unpredictability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions