N
Neo
I have a setup like
class A {
virtual void func1()=0;
.....
}
class B {
virtual void func2()=0;
....
}
class C: public A, public B {
virtual void func1()=0;
virtual void func2()=0;
....
}
where below class C is "bidir_chan"
g++ -O3 -Wall -I. -I.. -I../../../include -L. -L.. -L../../../lib-linux
-o run.x bidir_chan.o addr_generator.o main.o -lsystemc -lm 2>&1 |
c++filt
bidir_chan.o:bidir_chan.cpp.rdata$_ZTV10bidir_chan[vtable for
bidir_chan]+0x20): undefined reference to `bidir_chan::~bidir_chan()'
bidir_chan.o:bidir_chan.cpp.rdata$_ZTV10bidir_chan[vtable for
bidir_chan]+0x24): undefined reference to `bidir_chan::~bidir_chan()'
bidir_chan.o:bidir_chan.cpp.rdata$_ZTV10bidir_chan[vtable for
bidir_chan]+0x50): undefined reference to `non-virtual thunk to
bidir_chan::~bidir_chan()'
bidir_chan.o:bidir_chan.cpp.rdata$_ZTV10bidir_chan[vtable for
bidir_chan]+0x54): undefined reference to `non-virtual thunk to
bidir_chan::~bidir_chan()'
collect2: ld returned 1 exit status
what is this THUNK thing? I am using cygwin g++ ver 3.4.4-2
thanks for any hep,
Neo
class A {
virtual void func1()=0;
.....
}
class B {
virtual void func2()=0;
....
}
class C: public A, public B {
virtual void func1()=0;
virtual void func2()=0;
....
}
where below class C is "bidir_chan"
g++ -O3 -Wall -I. -I.. -I../../../include -L. -L.. -L../../../lib-linux
-o run.x bidir_chan.o addr_generator.o main.o -lsystemc -lm 2>&1 |
c++filt
bidir_chan.o:bidir_chan.cpp.rdata$_ZTV10bidir_chan[vtable for
bidir_chan]+0x20): undefined reference to `bidir_chan::~bidir_chan()'
bidir_chan.o:bidir_chan.cpp.rdata$_ZTV10bidir_chan[vtable for
bidir_chan]+0x24): undefined reference to `bidir_chan::~bidir_chan()'
bidir_chan.o:bidir_chan.cpp.rdata$_ZTV10bidir_chan[vtable for
bidir_chan]+0x50): undefined reference to `non-virtual thunk to
bidir_chan::~bidir_chan()'
bidir_chan.o:bidir_chan.cpp.rdata$_ZTV10bidir_chan[vtable for
bidir_chan]+0x54): undefined reference to `non-virtual thunk to
bidir_chan::~bidir_chan()'
collect2: ld returned 1 exit status
what is this THUNK thing? I am using cygwin g++ ver 3.4.4-2
thanks for any hep,
Neo