|
Boost Users : |
Subject: Re: [Boost-users] using boost.asio with wx widgets
From: Krzysztof Czainski (1czajnik_at_[hidden])
Date: 2011-03-20 09:03:55
2011/3/20 Sean Farrow <sean.farrow_at_[hidden]>
> Hi:
>
> Im trying to use wx widgets with boost.asio.
>
> Im including wx.h in the main header filewhich is not being included in
> the header Im concerned with now. Wx.h includes windows.h and therefore
> winsock.h.
>
> Im getting the error 1189 #error : winsock.h has already been included.
> Ive defined win32_lean_and_mean before including boost/asio.hpp.
>
> Ive also tried including wx.h before asio.hpp in the header Im dealing
> with now, this makes no difference I still get the same error.
>
> Has anyone got any other ideas?
>
> Any help appreciated.
>
> Regards
>
> Sean.
>
I have used wx together with boost, but not together with asio. However, I
have a wild guess what you can try, assuming you aren't going to use sockets
from wx. Try not including wx.h, but only precisely the wx files you need -
this could help...
Regards
Kris
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