$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] "WinSock.h has already been included" : problem with asio and VC++2010
From: michi7x7 (michi_at_[hidden])
Date: 2011-06-05 07:54:57
> Hi!
Hello,
> I use a boost asio library in my program. When I compile with Visual C++
> obtain this error:
>
> [...]\boost_1_45_0\boost\asio\detail\socket_types.hpp(22): fatal error
> C1189: #error : WinSock.h has already been included
>
> How can I fix this error?
Try to include asio before including any other Windows-Headers, or use
WinSock2.h instead of WinSock.
Best Regards,
michi7x7