Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / using XRC files in DevC++ devpack2.5.1

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. using XRC files in DevC++ devpack2.5.1
#4814
Posted by: 2004-07-13 23:13:37
Hello Guys/Gals,

I am relatively new to this new resource format in WxWidget and I have upgraded my DevC++ and installed the 2.5.1 devpack but I am trying to compile a XRC resouce based dialo and it don't work. it compiles fine but fails the link process. I have put the -lwxxrc before -lwxmsw25 and I get the following link errors.

C:/Dev-Cpp/lib/libwxxrc.a(xh_dlg.o)(.data$_ZTV16wxTopLevelWindow+0x0):xh_dlg.cpp: multiple definition of `vtable for wxTopLevelWindow'
socket/base.o(.rdata$_ZTV16wxTopLevelWindow+0x0):base.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_dialog.o)(.rdata$_ZTV8wxDialog+0x0):dialog.cpp: multiple definition of `vtable for wxDialog'
C:/Dev-Cpp/lib/libwxxrc.a(xh_dlg.o)(.data$_ZTV8wxDialog+0x0):xh_dlg.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_dialog.o)(.rdata$_ZTV12wxObjectList+0x0):dialog.cpp: multiple definition of `vtable for wxObjectList'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV12wxObjectList+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_datacmn.o)(.rdata$_ZTV12wxWindowList+0x0):datacmn.cpp: multiple definition of `vtable for wxWindowList'

C:/Dev-Cpp/lib/libwxxrc.a(xh_wizrd.o)(.data$_ZTV12wxWindowList+0x0):xh_wizrd.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_window.o)(.rdata$_ZTV8wxWindow+0x0):window.cpp: multiple definition of `vtable for wxWindow'
C:/Dev-Cpp/lib/libwxxrc.a(xh_wizrd.o)(.data$_ZTV8wxWindow+0x0):xh_wizrd.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_wincmn.o)(.text+0x30):wincmn.cpp: multiple definition of `wxWindowBase::wxWindowBase()'
C:/Dev-Cpp/lib/libwxxrc.a(xh_wizrd.o)(.text$_ZN12wxWindowBaseC2Ev+0x0):xh_wizrd.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_wincmn.o)(.rdata$_ZTV12wxWindowBase+0x0):wincmn.cpp: multiple definition of `vtable for wxWindowBase'
C:/Dev-Cpp/lib/libwxxrc.a(xh_wizrd.o)(.data$_ZTV12wxWindowBase+0x0):xh_wizrd.cpp: first defined here

C:/Dev-Cpp/lib/libwxmsw25.a(monolib_wincmn.o)(.rdata$_ZTV16wxWindowListNode+0x0):wincmn.cpp: multiple definition of `vtable for wxWindowListNode'
C:/Dev-Cpp/lib/libwxxrc.a(xh_wizrd.o)(.data$_ZTV16wxWindowListNode+0x0):xh_wizrd.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_toplevel.o)(.rdata$_ZTV19wxTopLevelWindowMSW+0x0):toplevel.cpp: multiple definition of `vtable for wxTopLevelWindowMSW'
C:/Dev-Cpp/lib/libwxxrc.a(xh_dlg.o)(.data$_ZTV19wxTopLevelWindowMSW+0x0):xh_dlg.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_dlgcmn.o)(.rdata$_ZTV12wxDialogBase+0x0):dlgcmn.cpp: multiple definition of `vtable for wxDialogBase'
C:/Dev-Cpp/lib/libwxxrc.a(xh_dlg.o)(.data$_ZTV12wxDialogBase+0x0):xh_dlg.cpp: first defined here

C:/Dev-Cpp/lib/libwxmsw25.a(monolib_nativdlg.o)(.rdata$_ZTV18wxBitmapButtonBase+0x0):nativdlg.cpp: multiple definition of `vtable for wxBitmapButtonBase'
C:/Dev-Cpp/lib/libwxxrc.a(xh_bmpbt.o)(.data$_ZTV18wxBitmapButtonBase+0x0):xh_bmpbt.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_object.o)(.rdata$_ZTV15wxObjectRefData+0x0):object.cpp: multiple definition of `vtable for wxObjectRefData'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV15wxObjectRefData+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_object.o)(.rdata$_ZTV8wxObject+0x0):object.cpp: multiple definition of `vtable for wxObject'
C:/Dev-Cpp/lib/libwxxrc.a(xh_dlg.o)(.data$_ZTV8wxObject+0x0):xh_dlg.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_intl.o)(.rdata$_ZTV17wxStringTokenizer+0x0):intl.cpp: multiple definition of `vtable for wxStringTokenizer'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV17wxStringTokenizer+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_filesys.o)(.rdata$_ZTV12wxFileSystem+0x0):filesys.cpp: multiple definition of `vtable for wxFileSystem'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV12wxFileSystem+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_list.o)(.rdata$_ZTV10wxListBase+0x0):list.cpp: multiple definition of `vtable for wxListBase'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV10wxListBase+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_list.o)(.rdata$_ZTV6wxList+0x0):list.cpp: multiple definition of `vtable for wxList'

C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV6wxList+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_list.o)(.rdata$_ZTV16wxObjectListNode+0x0):list.cpp: multiple definition of `vtable for wxObjectListNode'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV16wxObjectListNode+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_font.o)(.rdata$_ZTV6wxFont+0x0):font.cpp: multiple definition of `vtable for wxFont'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV6wxFont+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_bitmap.o)(.text+0x250):bitmap.cpp: multiple definition of `wxBitmap::CreateData() const'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.text$_ZNK8wxBitmap10CreateDataEv+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_bitmap.o)(.rdata$_ZTV8wxBitmap+0x0):bitmap.cpp: multiple definition of `vtable for wxBitmap'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV8wxBitmap+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_fontenum.o)(.rdata$_ZTV16wxFontEnumerator+0x0):fontenum.cpp: multiple definition of `vtable for wxFontEnumerator'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV16wxFontEnumerator+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_icon.o)(.rdata$_ZTV6wxIcon+0x0):icon.cpp: multiple definition of `vtable for wxIcon'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV6wxIcon+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_icon.o)(.rdata$_ZTV13wxIconRefData+0x0):icon.cpp: multiple definition of `vtable for wxIconRefData'
C:/Dev-Cpp/lib/libwxxrc.a(xmlres.o)(.data$_ZTV13wxIconRefData+0x0):xmlres.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_panelg.o)(.rdata$_ZTV7wxPanel+0x0):panelg.cpp: multiple definition of `vtable for wxPanel'
C:/Dev-Cpp/lib/libwxxrc.a(xh_wizrd.o)(.data$_ZTV7wxPanel+0x0):xh_wizrd.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_wizard.o)(.rdata$_ZTV8wxWizard+0x0):wizard.cpp: multiple definition of `vtable for wxWizard'
C:/Dev-Cpp/lib/libwxxrc.a(xh_wizrd.o)(.data$_ZTV8wxWizard+0x0):xh_wizrd.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_wizard.o)(.rdata$_ZTV12wxWizardPage+0x0):wizard.cpp: multiple definition of `vtable for wxWizardPage'
C:/Dev-Cpp/lib/libwxxrc.a(xh_wizrd.o)(.data$_ZTV12wxWizardPage+0x0):xh_wizrd.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_wizard.o)(.rdata$_ZTV18wxWizardPageSimple+0x0):wizard.cpp: multiple definition of `vtable for wxWizardPageSimple'
C:/Dev-Cpp/lib/libwxxrc.a(xh_wizrd.o)(.data$_ZTV18wxWizardPageSimple+0x0):xh_wizrd.cpp: first defined here

C:/Dev-Cpp/lib/libwxmsw25.a(monolib_wizard.o)(.rdata$_ZTV12wxWizardBase+0x0):wizard.cpp: multiple definition of `vtable for wxWizardBase'
C:/Dev-Cpp/lib/libwxxrc.a(xh_wizrd.o)(.data$_ZTV12wxWizardBase+0x0):xh_wizrd.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_splitter.o)(.rdata$_ZTV16wxSplitterWindow+0x0):splitter.cpp: multiple definition of `vtable for wxSplitterWindow'
C:/Dev-Cpp/lib/libwxxrc.a(xh_split.o)(.data$_ZTV16wxSplitterWindow+0x0):xh_split.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_frame.o)(.rdata$_ZTV7wxFrame+0x0):frame.cpp: multiple definition of `vtable for wxFrame'

C:/Dev-Cpp/lib/libwxxrc.a(xh_frame.o)(.data$_ZTV7wxFrame+0x0):xh_frame.cpp: first defined here

C:/Dev-Cpp/lib/libwxmsw25.a(monolib_statline.o)(.rdata$_ZTV12wxStaticLine+0x0):statline.cpp: multiple definition of `vtable for wxStaticLine'
C:/Dev-Cpp/lib/libwxxrc.a(xh_stlin.o)(.data$_ZTV12wxStaticLine+0x0):xh_stlin.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_statline.o)(.rdata$_ZTV16wxStaticLineBase+0x0):statline.cpp: multiple definition of `vtable for wxStaticLineBase'
C:/Dev-Cpp/lib/libwxxrc.a(xh_stlin.o)(.data$_ZTV16wxStaticLineBase+0x0):xh_stlin.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_tbar95.o)(.rdata$_ZTV9wxToolBar+0x0):tbar95.cpp: multiple definition of `vtable for wxToolBar'
C:/Dev-Cpp/lib/libwxxrc.a(xh_toolb.o)(.data$_ZTV9wxToolBar+0x0):xh_toolb.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_textctrl.o)(.rdata$_ZTV10wxTextCtrl+0x0):textctrl.cpp: multiple definition of `vtable for wxTextCtrl'
C:/Dev-Cpp/lib/libwxxrc.a(xh_text.o)(.data$_ZTV10wxTextCtrl+0x0):xh_text.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_textctrl.o)(.rdata$_ZTV14wxMenuItemList+0x0):textctrl.cpp: multiple definition of `vtable for wxMenuItemList'
C:/Dev-Cpp/lib/libwxxrc.a(xh_menu.o)(.data$_ZTV14wxMenuItemList+0x0):xh_menu.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_choice.o)(.rdata$_ZTV8wxChoice+0x0):choice.cpp: multiple definition of `vtable for wxChoice'
C:/Dev-Cpp/lib/libwxxrc.a(xh_choic.o)(.data$_ZTV8wxChoice+0x0):xh_choic.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_combobox.o)(.rdata$_ZTV10wxComboBox+0x0):combobox.cpp: multiple definition of `vtable for wxComboBox'
C:/Dev-Cpp/lib/libwxxrc.a(xh_combo.o)(.data$_ZTV10wxComboBox+0x0):xh_combo.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_radiobut.o)(.rdata$_ZTV13wxRadioButton+0x0):radiobut.cpp: multiple definition of `vtable for wxRadioButton'
C:/Dev-Cpp/lib/libwxxrc.a(xh_radbt.o)(.data$_ZTV13wxRadioButton+0x0):xh_radbt.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_scrolbar.o)(.rdata$_ZTV11wxScrollBar+0x0):scrolbar.cpp: multiple definition of `vtable for wxScrollBar'
C:/Dev-Cpp/lib/libwxxrc.a(xh_scrol.o)(.data$_ZTV11wxScrollBar+0x0):xh_scrol.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_spinbutt.o)(.rdata$_ZTV12wxSpinButton+0x0):spinbutt.cpp: multiple definition of `vtable for wxSpinButton'
C:/Dev-Cpp/lib/libwxxrc.a(xh_spin.o)(.data$_ZTV12wxSpinButton+0x0):xh_spin.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_spinctrl.o)(.rdata$_ZTV10wxSpinCtrl+0x0):spinctrl.cpp: multiple definition of `vtable for wxSpinCtrl'
C:/Dev-Cpp/lib/libwxxrc.a(xh_spin.o)(.data$_ZTV10wxSpinCtrl+0x0):xh_spin.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_htmlfilt.o)(.rdata$_ZTV21wxHtmlFilterPlainText+0x0):htmlfilt.cpp: multiple definition of `vtable for wxHtmlFilterPlainText'
C:/Dev-Cpp/lib/libwxxrc.a(xh_html.o)(.data$_ZTV21wxHtmlFilterPlainText+0x0):xh_html.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_htmlwin.o)(.rdata$_ZTV12wxHtmlWindow+0x0):htmlwin.cpp: multiple definition of `vtable for wxHtmlWindow'
C:/Dev-Cpp/lib/libwxxrc.a(xh_html.o)(.data$_ZTV12wxHtmlWindow+0x0):xh_html.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw25.a(monolib_htmlwin.o)(.rdata$_ZTV16wxScrolledWindow+0x0):htmlwin.cpp: multiple definition of `vtable for wxScrolledWindow'

...............................................................................

it goes on. Please if anyone has any ideas how to solve this problem please let me know.

Thanks
Message2. Re: using XRC files in DevC++ devpack2.5.1
#4816
Posted by: upCASE 2004-07-14 14:47:29
Hi!
Update your gcc compiler too. Here's a thread where this problem has been discussed: http://g.yi.org/forum/read.php?13,4557
To use XRC you'll have to have the contrib devpack installed.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2024-12-11  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0