Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / lots of linking errors with latest cvs-version

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. lots of linking errors with latest cvs-version
#3882
Posted by: 2004-04-21 02:20:04
hello list,

downloaded the latest wxWidgets - version by cvs few hours ago, make(ed) the lib's
and got 1612 linking errors. most of them are repeats, here a summary:

libwxbase25d.a -> wx\list.h: multiple definition of `vtable for wxEvent'
  wx\memory.h: first defined here
libwxbase25d.a -> wx\ownerdrw.h: multiple definition of `vtable for wxCommandEvent'
  wx\memory.h: first defined here
libwxbase25d.a -> wx\ownerdrw.h: multiple definition of `vtable for wxCheckListBoxBase'
  wx\memory.h: first defined here
libwxbase25d.a -> wx\evtloop.h: multiple definition of `vtable for wxTopLevelWindow'
  wx\memory.h: first defined here
libwxbase25d.a -> wx\msw\window.h: multiple definition of `vtable for wxStaticTextBase'
  wx\memory.h: first defined here
libwxbase25d.a -> wx\msw\window.h: multiple definition of `vtable for wxButtonBase'
  wx\memory.h: first defined here
libwxbase25d.a -> wx\msw\window.h: multiple definition of `vtable for wxStaticLineBase'
  wx\memory.h: first defined here
libwxbase25d.a -> wx\list.h: multiple definition of `vtable for wxMenuItemList'
wx\memory.h: first defined here
libwxbase25d.a -> wx\object.h: multiple definition of `vtable for wxCheckBoxBase'
wx\memory.h: first defined here
libwxbase25d.a -> wx\slider.h: multiple definition of `vtable for wxSliderBase'
wxWidgets\include\wx\memory.h: first defined here

Maybe this is the mainproblem, but the former linkingerrors are undefined references:

wx\memory.h: undefined reference to `_GLOBAL__D__ZN11LibaseFrame13sm_eventTableE'
wx\window.h: undefined reference to `_GLOBAL__I__ZN11ConfigOnSysC2Ev'
wx\memory.h: undefined reference to `_GLOBAL__I__Z3msbRK8wxString'
(these come from my code)

These form the libs:
libwxbase25d.a -> undefined reference to `_Unwind_Resume'    ~200 times
libwxmsw25d_core.a -> undefined reference to `_Unwind_Resume'    ~1000 times
libwxbase25d_odbc.a -> undefined reference to `_Unwind_Resume'  ~35 times
libwxbase25d_odbc.a -> undefined reference to `SQL xyz  (several different)
libwxbase25d_odbc.a -> undefined reference to `wxVariant::wxVariant()' 4 times

Build the libs:
mingw32-make -f makefile.gcc USE_ODBC=1
and in setup.h: wxUSE_ODBC 1

any ideas?

thanx and best regards
achim
Message2. Re: lots of linking errors with latest cvs-version
#3976
Posted by: 2004-04-30 21:21:01
hi,

meanwhile I managed to reduce the linking errors:
The multiple definitions of `vtable for ...' and the
undefined references to `_Unwind_Resume' disapeared when I reduced my potpourri
of different gcc-versions.

But there are still 530 linking errors, most of them
  undefined references to `_GLOBAL__D_...',
some are
  undefined references to `SQL...'
and a few
  undefined reference to `wxVariant::...'.

Tried to compile a sample, and it's nearly the same, so there is definitly something wrong with the wx-libaries I made by this: mingw32-make -f makefile.gcc USE_ODBC=1 USE_GUI=(0 and 1, tried both).

The libaries are:
libwxbase25d.a
libwxbase25d_net.a
libwxbase25d_odbc.a
libwxbase25d_xml.a
libwxexpatd.a
libwxjpegd.a
libwxmsw25d_adv.a
libwxmsw25d_core.a
libwxmsw25d_dbgrid.a
libwxmsw25d_html.a
libwxpngd.a
libwxregexd.a
libwxtiffd.a
libwxzlibd.a

Don't know, if there are any CPP-Flags required while makeing the libaries, the documentation don't anything about it.
Also I didn't find anything about the linking range.

Use: gcc (GCC) 3.2.3 (mingw special 20030504-1)

Any ideas, I'm thinking of giving up now...

Thanx and bets regards
Achim
Message3. Re: lots of linking errors with latest cvs-version
#3982
Posted by: guidance 2004-05-01 09:56:15
Maybe try this way with devcpp: http://g.yi.org/f.php?f=14288#12882
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Tue 2022-11-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0