Boost logo

Boost Users :

Subject: [Boost-users] "WinSock.h has already been included" : problem with asio and VC++2010
From: Claude (clros_at_[hidden])
Date: 2011-06-05 07:42:17


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?

View this message in context:
Sent from the Boost - Users mailing list archive at

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at