From: Thomas Matelich (matelich_at_[hidden])
Date: 2005-12-19 13:56:58
On 12/19/05, Andreas Willich <andreas_willich_at_[hidden]> wrote:
> >> I noticed a problem with the use of asio together with the test program
> >> exec
> >> monitor. If you include the prg_exec_monitor.hpp before the asio.hpp the
> >> boost.test lib includes winsock.h. In the next step asio includes the
> >Boost.Test never expplicetly includes winsock.h.
> >> winsock2.h. The result is that there are many redefinition errors like
> >> these:
> >What would you recommend?
> It looks like somewhere windows.h is included. When I define
> WIN32_LEAN_AND_MEAN for the hole project, the order of the includes is
> regardless because of following #ifndef in windows.h
I've found that I have to include winsock2.h before any include of
windows.h, to ensure that winsock.h is never included. Not a fun
solution, but the only one that worked for me.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk