help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

special_keyword or patch


From: chetan
Subject: special_keyword or patch
Date: 3 Jan 2005 20:53:13 -0800

Hi,
Have u ever tried   readelf -a file.o  on Linux then 

u will find .symtab section in that which shows addresses of the
symbols that are present in the code. With that it contains 'vis'
attribute of the of the symbol. That is "default" for all variable
that are there in the code if u have not used
__attribute__(visibility("hidden")) with gcc 3.4.0.

That __attribute__(visibility) works fine with declaration of the each
function
as follows

#define __attribute__(visibility("internal")) DLLEXPORT
class abc{
   public :
       int DLLEXPORT func1();
};

But that method to change the visibility of the symbol would be tedius
if you would have to write that in the declaration of each symbol in
case of huge codes.

so is there any patch or some special keyword available so that i can
change the visibility of the public members of the class if write
following
class DLLEXPORT abc{
    public:
       int var1;
       int func1();

};

reply via email to

[Prev in Thread] Current Thread [Next in Thread]