
20 Mar
2011
20 Mar
'11
3:57 p.m.
On Sun, Mar 20, 2011 at 6:53 AM, Sean Farrow
I’m trying to use wx widgets with boost.asio.
We use ASIO and wxWidgets together extensively. IME, you *must* include boost/asio.hpp *before* any wx includes (i.e. before including windows.h). Otherwise, the wrong version of winsock will be defined by windows.h, giving compile errors. Additionally, you may need to define WX_LEAN_AND_MEAN (as opposed to WIN32_LEAN_AND_MEAN) and NOMINMAX. Given the error you're reporting, I suspect you need to define WX_LEAN_AND_MEAN. Not sure if there is another work-around. Jon