Antoninus Twink wrote, On 05/05/08 14:00:
> On 5 May 2008 at 11:12, Flash Gordon wrote:
>> Antoninus Twink wrote, On 05/05/08 11:12:
>>> On 5 May 2008 at 9: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).
>>> 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=hidden.
>> So what is wrong with static? Why suggest a non-standard extension when
>> a feature the language has had in all implementations for years is
>> sufficient.
>
> Because they do different things. If you're making a shared library,
<snip>
Which is not what the OP was asking about. The OP make clear in what he
posted that by modules he meant source files. This is actually quoted by
you immediately before your response.
--
Flash Gordon


|