public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6690: Undefined symbol vtable
@ 2002-05-17 3:36 shulga
0 siblings, 0 replies; 2+ messages in thread
From: shulga @ 2002-05-17 3:36 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/6690: Undefined symbol vtable
@ 2002-05-17 7:53 nathan
0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-05-17 7:53 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, shulga
Synopsis: Undefined symbol vtable
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Fri May 17 07:53:46 2002
State-Changed-Why:
not a bug. You have used the C compiler to link C++ object
files. You must use g++ to link c++ object files
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6690
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-17 14:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-17 3:36 c++/6690: Undefined symbol vtable shulga
2002-05-17 7:53 nathan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).