You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had boost 1.69 which was working fine, I have upgraded the version to 1.82 and not changed any of the logger setup or configuration.
The logger fails to link with the executable now.
I'm using boost components - log and log_setup
both configure correctly and are used in target_link_libraries. The linked libraries are -
I suspect that Boost.Log was built for a different Windows version than your code. Most likely, Boost.Log was built for Windows 10 and you are building for an older version (Windows 7?). You can verify this by comparing the version namespace between the error messages and what the compiled library implements, specifically its trailing part (nt6).
To fix this you need to make sure _WIN32_WINNT is defined to the same target Windows version when Boost and your code is compiled. Either rebuild Boost with the version you need or update the value defined for your code. Alternatively, you may define BOOST_USE_WINAPI_VERSION to the target Windows version (again, the same value when building Boost and your code). This macro controls the Windows version targeted by Boost. This will allow to define _WIN32_WINNT differently for Boost and your code (usually, to a value higher than BOOST_USE_WINAPI_VERSION).
I had boost 1.69 which was working fine, I have upgraded the version to 1.82 and not changed any of the logger setup or configuration.
The logger fails to link with the executable now.
I'm using boost components - log and log_setup
both configure correctly and are used in
target_link_libraries
. The linked libraries are -The linking fails -
I'm using vcpkg to install boost-log
The text was updated successfully, but these errors were encountered: