std library hooks
"Jérôme M. Berger"
jeberger at free.fr
Sun Apr 15 09:11:43 PDT 2012
Manu wrote:
> If lib A has object file A:O, and it contains symbols x and y...
>
> If I now have my own object, and I define x, but also reference y, it
> will search for unresolved y in libraries, eventually finding the symbol
> in A:O, which it will then include right?
> As it includes A:O from the lib to resolve y, will it not also pull x in
> the same object, causing a collision with my existing definition of x?
>
Yes
> Basically, if an object in a lib defines multiple symbols, and I use
> one, but attempt to 'override' the other, is there a way to avoid this
> collision?
Not that I know.
> Is this the reason that CRT implementations always seem to strictly have
> one single .c file per CRT function?
Yes (not specifically to allow overrides, but to limit executable
bloat).
Jerome
--
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120415/bcffb09e/attachment.pgp>
More information about the Digitalmars-d
mailing list