|
Boost Users : |
Subject: Re: [Boost-users] using boost.asio with wx widgets
From: Jonathan Franklin (franklin.jonathan_at_[hidden])
Date: 2011-03-20 11:57:40
On Sun, Mar 20, 2011 at 6:53 AM, Sean Farrow
<sean.farrow_at_[hidden]> wrote:
> Im 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
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