--- Additional Comments From pedro dot lamarao at mndfck dot org
2005-08-26 01:31 ---
Substituting the pragma for -fvisibility=hidden also seems to solve the problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22185
--- Additional Comments From hjl at lucon dot org 2005-08-21 20:40 ---
One solution is to put
#pragma GCC visibility push(default)
...
#pragma GCC visibility pop
around all libc and libstdc++ header files, like
#pragma GCC visibility push(default)
#include
#pragma GCC visibility pop
--- Additional Comments From hjl at lucon dot org 2005-08-21 20:25 ---
The real isssue is you can't use
#pragma GCC visibility push(hidden)
on libstdc++ and glibc since they don't support them. We need to fix both glibc
and libstdc++ header files.
*** This bug has been marked as a dupl
--- Additional Comments From hjl at lucon dot org 2005-08-21 20:22 ---
Wrong duplicated bug.
--
What|Removed |Added
Status|RESOLVED|UNCONFIRME
--- Additional Comments From hjl at lucon dot org 2005-08-21 18:02 ---
It is a gcc bug and has been fixed in CVS:
[EMAIL PROTECTED] .libs]$ readelf --wide -s/usr/lib/libstdc++.so.6 | grep
_ZNSs4_Rep20_S_empty_rep_s | c++filt
1536: 000e3ef816 OBJECT WEAK DEFAULT 25 std::bas
--- Additional Comments From pedro dot lamarao at mndfck dot org
2005-06-26 14:58 ---
Works in the same system with a g++ 3.4.4 compiled from source:
[EMAIL PROTECTED] Projetos]$ $HOME/.local/gcc-3.4.4/bin/g++ -O3 -fPIC -c -o
net_error.o net_error.ii
[EMAIL PROTECTED] Projetos]$ $HOME/.
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-25
18:23 ---
I think this is a binutils bug and not a bug in GCC and/or libstdc++.
--
What|Removed |Added
--- Additional Comments From pedro dot lamarao at mndfck dot org
2005-06-25 16:10 ---
Created an attachment (id=9149)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9149&action=view)
Problem code
This file contains the declaration for a class inheriting from
std::runtime_error.
--