snippet of output:
/tmp/cce0kPDH.o(.gnu.linkonce.t._ZN7wxTimerC2Ev[wxTimer::wxTimer()]+0x17): In function `wxTimer::wxTimer()':
mousewatch.cpp: undefined reference to `vtable for wxTimer'
/tmp/cce0kPDH.o(.gnu.linkonce.t._ZN7wxTimerC2Ev[wxTimer::wxTimer()]+0x27):mousewatch.cpp: undefined reference to `wxTimer::Init()'
/tmp/cce0kPDH.o(.gnu.linkonce.t._ZN7wxTimerC2Ev[wxTimer::wxTimer()]+0x3e):mousewatch.cpp: undefined reference to `wxTimerBase::~wxTimerBase()'
/tmp/cce0kPDH.o(.gnu.linkonce.t._ZN10mouseWatchD1Ev[mouseWatch::~mouseWatch()]+0x19): In function `mouseWatch::~mouseWatch()':
mousewatch.cpp: undefined reference to `wxTimer::Stop()'
/tmp/cce0kPDH.o(.gnu.linkonce.t._ZN10mouseWatchD1Ev[mouseWatch::~mouseWatch()]+0x2d):mousewatch.cpp: undefined reference to `wxTimer::~wxTimer()'
/tmp/cce0kPDH.o(.gnu.linkonce.t._ZN10mouseWatchD1Ev[mouseWatch::~mouseWatch()]+0x49):mousewatch.cpp: undefined reference to `wxTimer::~wxTimer()'
/tmp/cce0kPDH.o(.gnu.linkonce.t._ZN10mouseWatchD0Ev[mouseWatch::~mouseWatch()]+0x19): In function `mouseWatch::~mouseWatch()':
mousewatch.cpp: undefined reference to `wxTimer::Stop()'
/tmp/cce0kPDH.o(.gnu.linkonce.t._ZN10mouseWatchD0Ev[mouseWatch::~mouseWatch()]+0x2d):mousewatch.cpp: undefined reference to `wxTimer::~wxTimer()'
/tmp/cce0kPDH.o(.gnu.linkonce.t._ZN10mouseWatchD0Ev[mouseWatch::~mouseWatch()]+0x49):mousewatch.cpp: undefined reference to `wxTimer::~wxTimer()'
collect2: ld returned 1 exit status
it plagues all of my wxWidgets compiled at command line
bash# g++ `wx-config --libs --cppflags` QuCursorDlg.cpp QuCursor\ App.cpp mousewatch.cpp -o QuCursor
(I really thinks its the command)
Thanks in advance.
Dang Linker errors
Hi,
This is just a shot in the dark:
Those dreaded "undefined reference to vtable" linker errors happen if you have a method declaration without definition in the class.
Check for something like
and foo.cpp is missing the "void foo:bar(){...};".
In your case I'd have a close look at mousewatch.cpp/mousewatch.h.
HTH, Chris
This is just a shot in the dark:
Those dreaded "undefined reference to vtable" linker errors happen if you have a method declaration without definition in the class.
Check for something like
Code: Select all
foo.h:
class foo{
void bar();
};
In your case I'd have a close look at mousewatch.cpp/mousewatch.h.
HTH, Chris
this->signature=NULL;