From: John L. <jla...@gm...> - 2007-02-08 15:27:12
|
On 2/8/07, Mat=EDas Szeftel <msz...@ya...> wrote: > > Hi wxCoders! > I hope you can help me. This might be a more c++ related question but I f= eel > that you are the only ones that can help me. HELP!!! :( > > I'm tryng to comile my component (wxActiveRecordGenerator: activerecord m= odule > in wxCode CVS). > > I'm in Kubuntu using wx2.8 and gcc 4.1 and DatabaseLayer 1.6. I'm having > linking errors when doing a "make -f GNUmakefile". > > Hope you can help... > > Regards Mat=EDas. > > This is the output: > > btw: referencia a `vtable for xxxx' sin definir =3D undefined reference t= o > `vtable for xxxx' > All the methods are defined so I really don'tget the error messages...an= d I > have no virtual functions. I should be getting linker errors against > DatabaseLayer because I haven't compiled it yet. > > gnu/wxActiveRecordGenerator_DatabaseConnectionDlg.o: In function > `DatabaseConnectionDlg::DatabaseConnectionDlg(wxWindow*, int, wxString > const&, wxPoint const&, wxSize const&, long)': > DatabaseConnectionDlg.cpp:(.text+0x27af): referencia a `vtable for > DatabaseConnectionDlg' sin definir > gnu/wxActiveRecordGenerator_RelationPropertiesDlg.o: In function > `RelationPropertiesDlg::RelationPropertiesDlg(wxWindow*, int, wxString > const&, wxPoint const&, wxSize const&, long)': > RelationPropertiesDlg.cpp:(.text+0x2223): referencia a `vtable for > RelationPropertiesDlg' sin definir For starters you may want to try adding virtual destructors for these classes, just an empty one like this. I think I've seen error messages like these before and I'm guessing that they are from the base class having a vtable, but your subclassed class doesn't explicitly have one. in DatabaseConnectionDlg.h add virtual ~DatabaseConnectionDlg() {} Hope this helps, John Labenski |