
smbrown@teledyne.com 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