This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]