Hello, When compiled with -g3, no virtual table code is generated with pragma implementation: Example: File a.h: #pragma interface class a { public: a(); virtual ~a(); }; File a.C: #pragma implementation #include "a.h" a::a() {} a::~a() {} main(int , char **) { } c++ -g3 a.C produces: /tmp/ccnMnzgd.o: In function `a::a(void)': /home/han/g3bug/a.C:5: undefined reference to `a virtual table' /tmp/ccnMnzgd.o: In function `a::~a(void)': /home/han/g3bug/a.C:6: undefined reference to `a virtual table' collect2: ld returned 1 exit status When compiled without -g or just -g everything is fine. This is RH 7.0 gcc-2.96-69 Cheers, Han Holl
*** This bug has been marked as a duplicate of 21280 ***