From: <msz...@ya...> - 2007-02-08 20:35:05
|
El Jueves, 8 de Febrero de 2007 12:27, John Labenski escribi=F3: > 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 > > feel that you are the only ones that can help me. HELP!!! :( > > > > I'm tryng to comile my component (wxActiveRecordGenerator: activerecord > > module 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= to > > `vtable for xxxx' > > All the methods are defined so I really don'tget the error > > messages...and 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() {} I did this John. But I made it a non-inline virtual destructor. Because I'= ve=20 read that the vtable shall be alocated in the first non-inline virtual=20 function. Anyway now I'm getting undefined reference to vtable for the destructors. = :( =2E.. plus the previous errors. I do think you are pointing the right way here, but I don't know what to=20 do... Thanks,=20 Matias Szeftel __________________________________________________ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas |