« Return to Thread: [asio]Winsock.h

Re: [asio]Winsock.h

by Commander Pirx :: Rate this Message:

Reply to Author | View in Thread

I was struggling with this problem too. Include <asio.hpp> before
<windows.h> and all works fine.


"Robert Jones" <robertgbjones@...> schrieb im Newsbeitrag
news:4efd67eb0907070616i225bc2f4h7a4a255be2e8bd5d@......
On Tue, Jul 7, 2009 at 11:42 AM, Igor R <boost.lists@...> wrote:

> What's the deal with Winsock.h & Asio?
>
> I can see there's been chatter on this topic before, but not what the
> result is.


Could you please mention your Boost version, compiler and the specific
issue you encounter?


Yeah, sorry, I thought this would instantly ring bells with folks!

Boost 1.38, Vis Studio 2005, and the issue is that unless I put the main
Boost.Asio header first in my #include list I get a failure message

WinSock.h has already been included

from socket_types.hpp.

Thanks, Rob.




_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users 


_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

 « Return to Thread: [asio]Winsock.h