On 5 May, 11:12, Antoninus Twink <nos...@[EMAIL PROTECTED]
> wrote:
> On =A05 May 2008 at =A09:53, Bartc wrote:
>
> > I noticed that in C, functions in any module are automatically
> > ex****ted. So
> > that it's not possible to use the same function name in two modules >
> =
(ie. source files).
>
> > Now that I know that, I get work around it; but is there a way to
> > avoid the problem (short of lots of renaming)?
>
> Check out your compiler's options. For example, gcc has quite a
> sophisticated visibility model: in the simplest case, you can use
> __attribute ((visibility("hidden"))) as a qualifier, or compile with
> -fvisibility=3Dhidden.
don't use compiler specific extensions when you don't have to.
Use static to keep things at file scope.
--
Nick Keighley


|