Boost logo

Boost Users :

From: Jean-Sebastien Stoezel (js.stoezel_at_[hidden])
Date: 2008-07-09 07:51:01


Hi,

Thanks for the advice, it solved the issue.

Jean

There is no other include. I still get:

On 8-Jul-08, at 9:10 AM, gchen wrote:

> Jean-Sebastien Stoezel wrote:
>> Here are the boost header files I include in my application:
>> #include <boost/thread/thread.hpp>
>> #include <boost/asio.hpp>
>> #include <boost/date_time/posix_time/posix_time.hpp>
>> I guess I am then using the boost date/time.
>> I am not sure I understand what boost macros I need to define and
>> so far I have defined none.
>> Isn't there another way to fix this issue, rather than hacking the
>> boost files?
>
> Add a #define WIN32_LEAN_AND_MEAN or #include <winsock2.h>
> before including all boost headers.
>
> #define WIN32_LEAN_AND_MEAN
> // #include <winsock2.h> // or this
> #include <boost/thread/thread.hpp>
> #include <boost/asio.hpp>
> #include <boost/date_time/posix_time/posix_time.hpp>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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