This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13905] Use of __attribute__ ((visibility("X"))) in class and struct declarations
- From: "s_gccbugzilla at nedprod dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2004 23:14:54 -0000
- Subject: [Bug c++/13905] Use of __attribute__ ((visibility("X"))) in class and struct declarations
- References: <20040128224951.13905.s_gccbugzilla@nedprod.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From s_gccbugzilla at nedprod dot com 2004-01-28 23:14 -------
(In reply to comment #0)
> class __attribute__ ((visibility("public"))) PublicClass {
I should add that I made a mistake here - "public" is not a valid ELF symbol
export specification. The choices are:
external, default, protected, hidden, internal.
Therefore I really meant to say there:
class __attribute__ ((visibility("external"))) PublicClass {
... meaning that all members (data and functions) are /exported/ ie; present in
the ELF export symbol table.
My apologies for any confusion caused.
Cheers,
Niall
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13905