Boost logo

Boost Users :

From: Kevin Scarr (kscarr_at_[hidden])
Date: 2008-07-08 01:04:32


Jean-Sebastien Stoezel wrote:
> Hi,
>
> Thanks for your quick answer. I am not including <windows.h> (I'm
> compiling a console application, without support for MFCs or
> precompiled headers).
> Here is what I have defined in the project: WIN32;_DEBUG;_CONSOLE
>
> I haven't defined WIN32_LEAN_AND_MEAN or any other macro (just
> included <boost/asio.hpp>).
>
> Any idea of what else this could be?
>
> Thanks,
> Jean
>

Hi

Are you using Boost date/time anywhere??

There are two includes of windows.h in filetime_functions.hpp and
microsec_time_clock.hpp which do not have the "lean and mean" macro
defined before the includes.

For me, I had to add the "lean and mean" to microsec_time_clock.hpp just
prior to the windows.h include to fix this error.

Kevin


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net