This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3839: Link error "undefined reference to `non-virtual thunk"
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3839: Link error "undefined reference to `non-virtual thunk"
- From: us at ooc dot de
- Date: 27 Jul 2001 13:19:10 -0000
- Reply-To: us at ooc dot de
>Number: 3839
>Category: c++
>Synopsis: Link error "undefined reference to `non-virtual thunk"
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 27 06:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Uwe Seimet
>Release: 3.0.1 20010727 (prerelease)
>Organization:
>Environment:
System: Linux duplo 2.4.6 #4 SMP Mon Jul 23 10:29:37 MEST 2001 i686 unknown
Architecture: i686
<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /home/us/egcs/gcc-3.01/configure --prefix=/opt/gcc-3.01 --enable-shared --enable-threads --enable-languages=c++
>Description:
Linking our C++ code gives error messages like this:
../../lib/libIDL.so: undefined reference to `non-virtual thunk to PortableServer::ServantBase::_non_existent()'
../../lib/libIDL.so: undefined reference to `non-virtual thunk to PortableServer::ServantBase::_get_interface()'
../../lib/libIDL.so: undefined reference to `virtual thunk to PortableServer::RefCountServantBase::_add_ref()'
The same code links fine when being compiled with GCC 2.95.3
and the native compilers of Solaris, HP-UX, OSF/1, AIX, ...,
which is why we think this is a bug in gcc 3.0.
I'm sorry that I cannot provide sample code because our
project is simply too large to provide a small example that
reproduces this.
(BTW, what is a virtual thunk?)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: