Boost logo

Boost Users :

Subject: Re: [Boost-users] [ASIO|Thread] Advice for removing MFC/ afxwin.h dependancies
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2010-05-25 13:47:53


smbrown_at_[hidden] wrote:
> Hi all,
>
> I've inherited a windows C++ application which I've extended and that I'm
> now preparing for porting to Linux.
>
> I'm going through the app removing any MFC code replacing it with standard
> C++. I use Boost asio and thread and they seem to be requiring me to
> include afxwin.h before any boost includes or it won't build complaining
> that Winsock.h or Windows.h has alreday been included.
>
> I can bodge around those errors, but then the code doesn't link as new and
> delete have already been referenced from an afx lib.
>
> Is there any general advice for Boost/MFC coexistance or MFC removal?

FYI, I'm using both boost::asio and boost::thread across mac and windows
portably and without a need to explicitly include windows headers.

Jeff


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