This is the mail archive of the
mailing list for the GCC project.
Re: exporting symbols in shared libraries
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- To: thomas joseph <thomascanny at yahoo dot co dot nz>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 25 Oct 2002 01:08:57 +1000
- Subject: Re: exporting symbols in shared libraries
- References: <firstname.lastname@example.org>
On 24-Oct-2002, thomas joseph <email@example.com> wrote:
> Hi All,
> I have a small question to you.
> Could some body tell me how do I stop exporting
> a symbol in a shared libraries using gcc.
> I do n't want to make it static. Because I need to
> access it from other files.
> Is there any compiler option/construct to support
In the latest (CVS) versions of gcc, you can use the visibility attribute,
e.g. __attribute__((visibility(hidden))). This only works for ELF targets,
Fergus Henderson <firstname.lastname@example.org> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.