On 2/8/07, Matías Szeftel <[EMAIL PROTECTED]> 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ías. > > This is the output: > > btw: referencia a `vtable for xxxx' sin definir = 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() {} Hope this helps, John Labenski ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users