[Bug c++/13905] Use of __attribute__ ((visibility("X"))) in class and struct declarations

s_gccbugzilla at nedprod dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 28 23:14:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list