This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22063] New: link failure involving symbol visibility
- From: "mueller at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2005 14:18:48 -0000
- Subject: [Bug c++/22063] New: link failure involving symbol visibility
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I'm experiencing a build failure in a rather complex project which boils
down to a class compiled with two different visibilities. it fails with this
error, but only when using -fPIC
linkfoo.o: In function `foo::foo()':
linkfoo.cc:(.gnu.linkonce.t._ZN3fooC1Ev[foo::foo()]+0x11): undefined reference
to `vtable for foo'
/usr/lib/gcc/i586-suse-linux/4.0.1/../../../../i586-suse-linux/bin/ld:
liblinkfoo.so: hidden symbol `vtable for foo' isn't defined
/usr/lib/gcc/i586-suse-linux/4.0.1/../../../../i586-suse-linux/bin/ld: final
link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
attaching testcase.
--
Summary: link failure involving symbol visibility
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mueller at kde dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i386-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22063