linking problem

Dallas Morlock dallas@daktel.com
Fri Feb 6 09:58:00 GMT 1998


struct Outer
{
  virtual ~Outer() {}
};

int
main()
{
  struct Inner : virtual Outer {} inner;
}

----------

$ g++ -v
Reading specs from
/mnt/space/egcs-980205/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.9
1.07/specs
gcc version egcs-2.91.07 980205 (gcc-2.8.0 release)

$ g++ LinkTest.cc
/tmp/cca207111.o: In function `virtual function thunk (delta:-4) for
main.0::Inn
er::~Inner(void)':
/tmp/cca207111.o(.gnu.linkonce.t.__thunk_4__._Q26main.0_5Inner+0x6):
undefined r
eference to `main.0::Inner::~Inner(void)'
collect2: ld returned 1 exit status



More information about the Gcc-bugs mailing list