Problems building on WIN32
"Michael S. Muegel" <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to get a build system going on my XP system where I do my .NET development. I am using the latest CVS versions of wx.Widgets and wx.NET. My goal is to build a wx-c.dll /wx.NET.dll pair. I have built wx.Widgets using the makefile.vc mode. VS.NET 2003 is doing the work behind the scenes. My build/msw/config.vc is the default: SHARED = 0 WXUNIV = 0 UNICODE = 0 MSLU = 0 BUILD = debug In include/wx/msw/include.h the only changes I made were to set: #define WXWIN_COMPATIBILITY_2_4 1 #define wxUSE_DISPLAY 1 I compile via nmake -f makefile.vc successfully. Theses files appear in lib/vc_lib: wxbase25d.lib wxbase25d.pdb wxbase25d_net.lib wxbase25d_net.pdb wxbase25d_xml.lib wxbase25d_xml.pdb wxexpatd.lib wxexpatd.pdb wxjpegd.lib wxjpegd.pdb wxmsw25d_adv.lib wxmsw25d_adv.pdb wxmsw25d_core.lib wxmsw25d_core.pdb wxmsw25d_html.lib wxmsw25d_html.pdb wxpngd.lib wxpngd.pdb wxregexd.lib wxregexd.pdb wxtiffd.lib wxtiffd.pdb wxzlibd.lib wxzlibd.pdb The samples also build and work via nmake. To compile wx.NET I go the VS.NET route: premake --target vs2003 --with-shared I tweak the VS.NET wx-c project and build. Everything seems OK up until linking: wx-c error LNK2019: unresolved external symbol "public: virtual enum wxDragResult __thiscall wxDropTargetBase::OnData(int,int,enum wxDragResult)" (?OnData@wxDropTargetBase@@UAE?AW4wxDragResult@@HHW42@@Z) referenced in function _wxDropTarget_OnData wx-c error LNK2019: unresolved external symbol "protected: virtual class wxString __thiscall wxHtmlListBox::OnGetItem(unsigned int)const " (?OnGetItem@wxHtmlListBox@@MBE?AVwxString@@I@Z) referenced in function "public: class wxString __thiscall _HtmlListBox::VPOnGetItem(unsigned int)" (?VPOnGetItem@_HtmlListBox@@QAE?AVwxString@@I@Z) wx-c error LNK2019: unresolved external symbol "protected: virtual int __thiscall wxVListBox::OnMeasureItem(unsigned int)const " (?OnMeasureItem@wxVListBox@@MBEHI@Z) referenced in function "public: int __thiscall _VListBox::POnMeasureItem(unsigned int)" (?POnMeasureItem@_VListBox@@QAEHI@Z) wx-c error LNK2019: unresolved external symbol "protected: virtual int __thiscall wxVScrolledWindow::OnGetLineHeight(unsigned int)const " (?OnGetLineHeight@wxVScrolledWindow@@MBEHI@Z) referenced in function "public: int __thiscall _VScrolledWindow::POnGetLineHeight(int)" (?POnGetLineHeight@_VScrolledWindow@@QAEHH@Z) wx-c error LNK2019: unresolved external symbol "protected: virtual void __thiscall wxVListBox::OnDrawItem(class wxDC &,class wxRect const &,unsigned int)const " (?OnDrawItem@wxVListBox@@MBEXAAVwxDC@@ABVwxRect@@I@Z) referenced in function "public: void __thiscall _VListBox::POnDrawItem(class wxDC &,class wxRect const &,unsigned int)" (?POnDrawItem@_VListBox@@QAEXAAVwxDC@@ABVwxRect@@I@Z) Any hints? Thanks, -Mike -- Michael S. Muegel Dallas, TX ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297