This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/6690: Undefined symbol vtable

>Number:         6690
>Category:       c++
>Synopsis:       Undefined symbol vtable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Fri May 17 03:36:01 PDT 2002
>Release:        3.0.2
gcc -v
Reading specs from /usr/local/gcc302/lib/gcc-lib/sparc-sun-solaris2.6/3.0.2/specs
Configured with: ./configure --prefix=/usr/local/gcc302 --enable-languages=c,c++ --enable-threads=posix
Thread model: posix
gcc version 3.0.2

uname -a
SunOS cat 5.6 Generic_105181-29 sun4u sparc SUNW,Ultra-4
$ gcc -o v.exe

Undefined			first referenced
 symbol  			    in file
vtable for _cxxabiv1::__si_class_type_info/var/tmp/ccer5z7H.o
vtable for __cxxabiv1::__class_type_info/var/tmp/ccer5z7H.o
ld: fatal: Symbol referencing errors. No output written to v.exe
collect2: ld returned 1 exit status
class C1 {
  virtual void draw(void);

void C1::draw(void) {}

class C2 : public C1 {
  void draw(void);

void C2::draw(void) {}

int main()


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]