Trolltech Home | Qt-embedded-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-embedded-interest Archive, November 2006
undefined reference to `vtable" proble


Message 1 in thread

Hi,
I started developing my application on qtopia using qt designer.
I have little problem while compiling my application.I used signals and
slots from qtdesigner and it is giving some problem.
I created implementation file and inherited the class creted by QT designer.
i created the same slot which is there in the base class as virtual
function. Every thing i did fine. but it is not compiling. I am using suse
10.0. as my os. If i won't create implementation file and  if compile it is
compiling fine.
I am attaching my application also for ur refernce.

When i did make it is giving following message.
................................................................
-L/home/harsha/qt-2.3.10/lib -lqte
.obj/release-shared/ANSiscope.o: In function
`PatientInfoFormImpl::PatientInfoFormImpl(QWidget*, char const*, unsigned
int)':
ANSiscope.cpp:(.gnu.linkonce.t._ZN19PatientInfoFormImplC1EP7QWidgetPKcj[PatientInfoFormImpl::PatientInfoFormImpl(QWidget*,
char const*, unsigned int)]+0x18): undefined reference to `vtable for
PatientInfoFormImpl'
ANSiscope.cpp:(.gnu.linkonce.t._ZN19PatientInfoFormImplC1EP7QWidgetPKcj[PatientInfoFormImpl::PatientInfoFormImpl(QWidget*,
char const*, unsigned int)]+0x1f): undefined reference to `vtable for
PatientInfoFormImpl'
.obj/release-shared/ANSiscope.o: In function
`PatientInfoFormImpl::~PatientInfoFormImpl()':
ANSiscope.cpp:(.gnu.linkonce.t._ZN19PatientInfoFormImplD1Ev[PatientInfoFormImpl::~PatientInfoFormImpl()]+0x10):
undefined reference to `vtable for PatientInfoFormImpl'
ANSiscope.cpp:(.gnu.linkonce.t._ZN19PatientInfoFormImplD1Ev[PatientInfoFormImpl::~PatientInfoFormImpl()]+0x17):
undefined reference to `vtable for PatientInfoFormImpl'
collect2: ld returned 1 exit status
make: *** [CANSiscope] Error 1

In the README file of the attachment i added the steps which i fallowed.

I looked in to my code but i couldn't find any problem.

Thanks in Advance.


Regards,
Harsha

Attachment:

Attachment: CANSiscope.tar.gz
Description: GNU Zip compressed data