Subject: Re: C shared lib question
To: None <tech-toolchain@netbsd.org>
From: Jason R Thorpe <thorpej@shagadelic.org>
List: tech-toolchain
Date: 03/09/2000 14:47:43
On Thu, Mar 09, 2000 at 10:40:33PM +0100, Klaus Klein wrote:
> > Maybe they need to have "static" as part of their declarations...
>
> That's one way to address this...
>
> Note that identifiers with external linkage and their names beginning
> with an underscore are reserved for implementation purposes, so this
> simply boils down to a _legitimate_ namespace clash. Restricting the
> identifier linkage to file scope or, preferably, naming them
> appropriately, will settle the issue.
Right, well, I think the point is that on some systems, _init() and
_fini() "just work" for creating contructors/destructors. If you
rename them, you then have to add the __attribute__s, which is a GCC
extension.
--
-- Jason R. Thorpe <thorpej@shagadelic.org>