Boost logo

Boost :

Subject: Re: [boost] [build][wave][thread][date-time] 1.65.0 clang on Windows build failures
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2017-08-28 17:23:43


On 08/28/17 15:20, Konstantin Ivlev via Boost wrote:
>
> 3. WinAPI-related errors in boost::date_time & boost::thread, e.g.
>
> In file included from libs\coroutine\src\windows\stack_traits.cpp:23:
> In file included from .\boost/thread.hpp:13:
> In file included from .\boost/thread/thread.hpp:12:
> In file included from .\boost/thread/thread_only.hpp:15:
> In file included from .\boost/thread/win32/thread_data.hpp:10:
> In file included from .\boost/thread/thread_time.hpp:10:
> In file included from .\boost/date_time/microsec_time_clock.hpp:23:
> .\boost/date_time/filetime_functions.hpp:57:46: error: conflicting types
> for 'GetSystemTimeAsFileTime'
> __declspec(dllimport) void __stdcall GetSystemTimeAsFileTime(FILETIME*
> lpFileTime);
> ^
> C:\Program Files (x86)\Windows
> Kits\10\include\10.0.15063.0\um\sysinfoapi.h:159:1:
> note: previous declaration is here
> GetSystemTimeAsFileTime(
> ^
>
> seems like stack_traits.cpp unconditionally includes windows.h,
> while BOOST_USE_WINDOWS_H is not defined in case of clang build, so
> filetime_functions.hpp defines its own WinAPI prototypes. probably shall be
> somehow fixed in boost config?
>
> any advice on how to proceed with these issues?

The Boost.DateTime part should be fixed by this PR:

https://github.com/boostorg/date_time/pull/45


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk