Boost logo

Boost :

Subject: Re: [boost] [winapi] Default target Windows version
From: Sergey Cheban (s.cheban_at_[hidden])
Date: 2013-10-24 06:15:48

On 24.10.2013 13:00, Andrey Semashev wrote:

>> No. The condvar_vista won't be included into the binary because it won't
>> be used (providing _WIN32_WINNT==0x0501 for the user's code). The whole
>> condvar_vista.obj will be linked out. So, the vista-specific functions
>> won't be referenced and the code will be WinXP-compatible.
> If condvar_vista is compiled into a dll, it won't be linked out. If you don't
> compile it because _WIN32_WINNT == 0x0501 then that's the current approach
> already. And it requires _WIN32_WINNT to be defined when Boost itself is
> built.
Sorry, I've completely forgotten about the dll versions of boost libraries. Of
course, to build them, the WINAPI version must be specified at compile time (or,
the library could use GetProcAddress etc., but this approach has it's own

Sergey Cheban

Boost list run by bdawes at, gregod at, cpdaniel at, john at