Roland Mainz <[EMAIL PROTECTED]> wrote:
> > > https://mailman.research.att.com/pipermail/ast-developers/2006q3/000138.html): > > > -- snip -- > > > ld: warning multiple definitions of symbol _strtol > > > > This is a result of the non-standard linker from MacOS X that I would call a > > bug. > > Uhm... I do not care whether this is a bug in MacOSX - I am looking for > a linker flag in Solaris and/or the Sun Studio compiler which generates > similar warnings... :-) The official linker behavior is to use the leftmost occurance of a symbol on the command line and besides some recent changes in C-99, C does not know anything about "special functions". On Macos x, you see warnings because of the non-standard way of dealing with shared libraries that does not allow the standard linker rules. If you are on a system that honors standard linker rules, you would need to write a script if you _really_ need this "feature". Try ld -r *.o and then check which of the symbols also appear in libc, using nm. Jörg -- EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin [EMAIL PROTECTED] (uni) [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-discuss mailing list [email protected]
