Closed MrM21632 closed 6 years ago
Given that the error appears when Boost.Log is compiled, I'm assuming BOOST_USE_WINDOWS_H
is defined. Which means that CompareObjectHandles
declaration is missing in MinGW-w64 Platform SDK headers. MinGW-w64 probably does not support Windows 10 API, so my suggestion is to report this problem to MinGW-w64 devs and use a lower value for _WIN32_WINNT
(or define BOOST_USE_WINAPI_VERSION
to a lower version to just build Boost for a lower Windows version).
I'm experiencing build failures with Boost 1.68 using the latest SVN/Git revisions of GCC 8.2.1 and MinGW-w64. I have set the default _WIN32_WINNT for MinGW-w64 to 0xA00 (i.e., Windows 10), and am attempting to build through the latest version of MSYS2.
I'm getting several errors similar to this one when building:
It seems like either there's an issue with how CompareObjectHandles is declared in this header file, or there's an issue with MinGW-w64 that needs addressing.