Nick (wxdevel@nicreations.net) wrote:
> If you want to use the static library in MinGW, you''re going to
have to
> edit extconf.rb (by default it defines WXUSINGDLL and other stuff). Can
> you say what your linker errors are?
Well, since I use MSYS & configure mechanism, everything should be handled
by wx-config script.
On my system it gives:
$ wx-config --cxxflags
-I/mingw/lib/wx/include/mswd-2.4 -I/mingw/include -D__WXDEBUG__ -D__WXMSW__
-mthreads -fno-pcc-struct-return
unknown@GAURA-GOUR ~/wxruby/src
$ wx-config --libs
-L/mingw/lib -Wl,--subsystem,windows -mwindows -mthreads
/mingw/lib/libwxmsw242d.a -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm
-lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32i
Here is the last snippet of linking errors:
C:/MSYS/1.0/home/gour/wxruby/src/textattr.cpp:86: undefined reference to
`wxFontBase::~wxFontBase()''
textattr.o(.text+0x53b):C:/MSYS/1.0/home/gour/wxruby/src/textattr.cpp:86:
undefined reference to `wxColour::~wxColour()''
textattr.o(.text+0x551):C:/MSYS/1.0/home/gour/wxruby/src/textattr.cpp:86:
undefined reference to `wxColour::~wxColour()''
textattr.o(.text+0x602): In function
`ZN10WxTextAttr19GetBackgroundColourEiPmm'':
c:/MinGW/include/wx/textctrl.h:131: undefined reference to
`wxColour::wxColour(wxColour const&)''
textattr.o(.text+0x62a): In function
`ZN10WxTextAttr19GetBackgroundColourEiPmm'':
C:/MSYS/1.0/home/gour/wxruby/src/textattr.cpp:108: undefined reference to
`wxColour::~wxColour()''
textattr.o(.text+0x65f):C:/MSYS/1.0/home/gour/wxruby/src/textattr.cpp:108:
undefined reference to `wxColour::~wxColour()''
textattr.o(.text+0x70d): In function `ZN10WxTextAttr7GetFontEiPmm'':
c:/MinGW/include/wx/msw/font.h:28: undefined reference to
`wxFont::Init()''
textattr.o(.text+0x71c):c:/MinGW/include/wx/msw/font.h:28: undefined reference
to `wxObject::Ref(wxObject const&)''
textattr.o(.text+0x744): In function `ZN10WxTextAttr7GetFontEiPmm'':
C:/MSYS/1.0/home/gour/wxruby/src/textattr.cpp:121: undefined reference to
`wxFont::~wxFont()''
textattr.o(.text+0x770):C:/MSYS/1.0/home/gour/wxruby/src/textattr.cpp:121:
undefined reference to `wxFontBase::~wxFontBase()''
textattr.o(.text+0x794):C:/MSYS/1.0/home/gour/wxruby/src/textattr.cpp:121:
undefined reference to `wxFont::~wxFont()''
textattr.o(.text+0x81f): In function
`ZN10WxTextAttr13GetTextColourEiPmm'':
c:/MinGW/include/wx/textctrl.h:130: undefined reference to
`wxColour::wxColour(wxColour const&)''
textattr.o(.text+0x847): In function
`ZN10WxTextAttr13GetTextColourEiPmm'':
C:/MSYS/1.0/home/gour/wxruby/src/textattr.cpp:134: undefined reference to
`wxColour::~wxColour()''
textattr.o(.text+0x87c):C:/MSYS/1.0/home/gour/wxruby/src/textattr.cpp:134:
undefined reference to `wxColour::~wxColour()''
make: *** [wxruby.so] Error 1
Any idea?
Sincerely,
Gour
--
Gour
gour@mail.inet.hr
Registered Linux User #278493