Hi,<br><br><div class="gmail_quote">2009/8/25 Robert Dailey <span dir="ltr"><<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> The two significant lines are:<div><br></div><div>#include <boost/asio/io_service.hpp></div><div>#include <wx/frame.h></div><div><br></div><div>With the order they are in above, you will get a linker error:</div> <div><br></div><div><div>Error<span style="white-space: pre;"> </span>1<span style="white-space: pre;"> </span>error LNK2001: unresolved external symbol "public: virtual class wxClassInfo * __thiscall wxFrame::GetClassInfoA(void)const " (?GetClassInfoA@wxFrame@@UBEPAVwxClassInfo@@XZ)<span style="white-space: pre;"> </span>MainFrame.obj</div> <div><br></div><div>When you swap the order, it goes away.</div></div></blockquote><div><br>Maybe you can try this solution: <a href="http://www.wxwidgets.org/docs/faqmsw.htm#asuffix">http://www.wxwidgets.org/docs/faqmsw.htm#asuffix</a><br> <br>Regards,<br><br>Olivier<br>�</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><br>---------<br><font color="#888888">Robert Dailey</font><div> <div></div><div class="h5"><br> <br><br><div class="gmail_quote">On Tue, Aug 25, 2009 at 12:11 PM, Jens Weller <span dir="ltr"><<a href="mailto:JensWeller@gmx.de" target="_blank">JensWeller@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div><div></div><div><br> > I noticed that <boost/asio.hpp> and <boost/asio/io_service.hpp> both<br> > include<br> > windows specific header files through some level of indirection. I know<br> > this<br> > because it is causing problems with wxWidgets depending on the order of my<br> > include directives. I was considering using a mediator/pimpl of some sort<br> > to<br> > keep the asio includes limited to a very confined translation unit, but<br> > this<br> > would complicate the usage of ASIO in general. I have a class that owns an<br> > io_service object by-value in its header.<br> > Anyone have any suggestions to reduce the amount of namespace polluting<br> > ASIO<br> > does? I really blame this on the Windows API, since ASIO is just as<br> > limited<br> > by it as I am. Thanks in advance.<br> <br> </div></div>I've just build an application with wxWidgets and asio this spring, and had no problems.<br> I did use kind of the pattern in the chat example, but extended and more split up in Classes.<br> Could you show the header code?<br> <br> regards<br> <br> Jens Weller<br> <font color="#888888">--<br> GRATIS f�r alle GMX-Mitglieder: Die maxdome Movie-FLAT!<br> Jetzt freischalten unter <a href="http://portal.gmx.net/de/go/maxdome01" target="_blank">http://portal.gmx.net/de/go/maxdome01</a><br> _______________________________________________<br> Boost-users mailing list<br> <a href="mailto:Boost-users@lists.boost.org" target="_blank">Boost-users@lists.boost.org</a><br> <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br> </font></blockquote></div><br></div></div></div> <br>_______________________________________________<br> Boost-users mailing list<br> <a href="mailto:Boost-users@lists.boost.org">Boost-users@lists.boost.org</a><br> <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br></blockquote></div><br>