wxruby-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wxruby-dev] Corrections for Windows build error


From: Roy Varghese
Subject: Re: [Wxruby-dev] Corrections for Windows build error
Date: Fri, 18 Jul 2003 00:34:49 -0700

----- Original Message ----- 
From: "Kevin Smith" <address@hidden>
To: "Roy Varghese" <address@hidden>; <>
Sent: Thursday, July 17, 2003 11:26 PM
Subject: Re: [Wxruby-dev] Corrections for Windows build error


> On Thu, 2003-07-17 at 22:19, Roy Varghese wrote:
> > > Roy: Can you find out what RUBY_VERSION_CODE is set to on your system?
> > > We can at least use that as a value for now.
> >
> > Is it in version.h? It so, it is 173.
> >
> > $WXDIR\lib\ruby\1.7\i386-mswin32\version.h
> > =====
> > #define RUBY_VERSION "1.7.3"
> > #define RUBY_RELEASE_DATE "2002-11-17"
> > #define RUBY_VERSION_CODE 173
>
> Looks right. Please try replacing the 180 with 173 in wx.h. That should
> solve it for you. If it does, let me know so I can update the real
> source.

Yes that took care of the StringValue macro warning, I had to leave
rb_define_alloc_func in. Here's the diff

diff -r1.13 wx.h
38c38
< #if RUBY_VERSION_CODE < 180
---
> #if RUBY_VERSION_CODE < 173
43a44
> #elif RUBY_VERSION_CODE < 180

 Now I'm stuck at the Link stage. I guess I need to rebuild my wxWindows,
but not sure how? I can compile and link a wxWindows app in Visual Studio,
havent tried the command line yet. Any clues?

Thx
Roy

 cl -nologo -LD -Fewxruby.so wx.obj app.obj bitmap.obj button.obj
calendar.obj checkbox.obj choice.obj colour.obj colourdata.obj
colourdialog.obj combobox.obj const.obj date.obj dialog.obj dirdialog.obj
event.obj evthandler.obj filedialog.obj font.obj fontdata.obj fontdialog.obj
frame.obj gauge.obj layout.obj listbox.obj menu.obj menubar.obj
messagedialog.obj point.obj radio.obj rect.obj size.obj sizer.obj slider.obj
spin.obj statictext.obj textctrl.obj timer.obj validator.obj window.obj
icon.obj artprovider.obj log.obj listctrl.obj list.obj panel.obj
scrolledwindow.obj dc.obj brush.obj pen.obj caret.obj statusbar.obj
ownerdrawn.obj config.obj region.obj cursor.obj notebook.obj tooltip.obj
mask.obj socket.obj url.obj stream.obj toolbar.obj image.obj palette.obj
treectrl.obj classinfo.obj splitterwindow.obj methods.obj staticbitmap.obj
control.obj togglebutton.obj grid.obj menuitem.obj textattr.obj wx.res
msvcrt-ruby17.lib kernel32.lib  c:\apps\wx2\lib\wxmswd.lib user32.lib
advapi32.lib wsock32.lib  gdi32.lib winspool.lib comdlg32.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib rpcrt4.lib
comctl32.lib uuid.lib c:\apps\wx2\lib\zlibd.lib c:\apps\wx2\lib\regexd.lib
c:\apps\wx2\lib\pngd.lib c:\apps\wx2\lib\jpegd.lib c:\apps\wx2\lib\tiffd.lib
/MD  -link -incremental:no -pdb:none -dll -libpath:"c:/apps/ruby/lib" -libpa
th:"c:/apps/ruby/lib/ruby/1.7/i386-mswin32" -libpath:"c:/apps/ruby/lib/ruby/
1.7/i386-mswin32 -libpath:c:\apps\wx2\lib" -def:wxruby.def
   Creating library wxruby.lib and object wxruby.exp
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4049: locally defined symbol ""public: __thiscall
wxString::~wxString(void)" (??1wxString@@address@hidden)" imported
LINK : warning LNK4049: locally defined symbol ""void __cdecl
wxSetInstance(struct HINSTANCE__ *)"
(?wxSetInstance@@YAXPAUHINSTANCE__@@@Z)" imported
LINK : warning LNK4049: locally defined symbol ""protected: static struct
wxEventTable const wxEvtHandler::sm_eventTable"
(address@hidden@@1UwxEventTable@@B)" imported
LINK : warning LNK4049: locally defined symbol ""int const wxEVT_NULL"
(?wxEVT_NULL@@3HB)" imported
LINK : warning LNK4049: locally defined symbol ""int const wxEVT_IDLE"
(?wxEVT_IDLE@@3HB)" imported

<snip about 1000 lines>

treectrl.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall wxTreeCtrl::wxTreeCtrl(class
wxWindow *,int,class wxPoint const &,class wxSize const &,long,class
wxValidator const &,class wxString const &)"
(__imp_??0wxTreeCtrl@@address@hidden@@HABVwxPoint@@ABVwxSize@@JABVwxValidat
or@@ABVwxString@@@Z)
methods.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) long __cdecl wxGetNumberFromUser(class wxString const
&,class wxString const &,class wxString const &,long,long,long,class
wxWindow *,class wxPoint const &)"
(__imp_?wxGetNumberFromUser@@YAJABVwxString@@00JJJPAVwxWindow@@ABVwxPoint@@@
Z)
methods.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) class wxTipProvider * __cdecl
wxCreateFileTipProvider(class wxString const &,unsigned int)"
(__imp_?wxCreateFileTipProvider@@YAPAVwxTipProvider@@ABVwxString@@address@hidden)
methods.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) bool __cdecl wxShowTip(class wxWindow *,class
wxTipProvider *,bool)"
(__imp_?wxShowTip@@YA_NPAVwxWindow@@PAVwxTipProvider@@address@hidden)
wxruby.so : fatal error LNK1120: 23 unresolved externals





reply via email to

[Prev in Thread] Current Thread [Next in Thread]