This is the mail archive of the gcc-bugs@gcc.gnu.org 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
>Closed-Date:
>Last-Modified:
>Originator:     shulga@ftc.ru
>Release:        3.0.2
>Organization:
>Environment:
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
>Description:
$ gcc -o v.exe v.cc

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
>How-To-Repeat:
class C1 {
public:
  virtual void draw(void);
};

void C1::draw(void) {}

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

void C2::draw(void) {}

int main()
{
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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