Boost logo

Boost Users :

Subject: [Boost-users] using boost.asio with wx widgets
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2011-03-20 08:53:54


Hi:
I'm trying to use wx widgets with boost.asio.
I'm including wx.h in the main header file-which is not being included in the header I'm concerned with now. Wx.h includes windows.h and therefore winsock.h.
I'm getting the error 1189 #error : winsock.h has already been included. I've defined win32_lean_and_mean before including boost/asio.hpp.
I've also tried including wx.h before asio.hpp in the header I'm dealing with now, this makes no difference I still get the same error.
Has anyone got any other ideas?
Any help appreciated.
Regards
Sean.



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