|
Boost Users : |
Subject: Re: [Boost-users] Boost::ASIO Winsock.h already included?
From: Sean McAllister (smcallis_at_[hidden])
Date: 2010-03-28 00:28:25
I was trying that but somehow it wasn't getting the job done. I went back
and include Winsock2.h in a
common header that I include at the top of everything, that seemed to get it
patched up.
On Sat, Mar 27, 2010 at 9:21 PM, l.jay Yuan <pass86_at_[hidden]> wrote:
> just #define WIN32_LEAN_AND_MEAN
>
> 2010/3/26 Sean McAllister <smcallis_at_[hidden]>:
> > I'm getting this error when building on windows. Looking online it
> seems
> > it can happen if you include windows.h before boost/asio.hpp without
> setting
> > WIN32_LEAN_AND_MEAN.
> > I've only got three places in my code that import windows.h on their own,
> > and I prefixed them all with that macro, but I'm still getting one error.
> > The only other thing I can think of is that
> > one of the boost libraries is including it and that's throwing a wrench
> into
> > things. Unforunately it's proving particularly pernicious to determine
> all
> > the files that include windows.h. Does anyone
> > know which libraries include it or have experience getting rid of this
> > error?
> >
> > _______________________________________________
> > Boost-users mailing list
> > Boost-users_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/boost-users
> >
> _______________________________________________
> 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