Subject: Re: Q. re linking on Mac OS X
To: Georg Schwarz <georg.schwarz@freenet.de>
From: Adam <adam@albedo.art.pl>
List: tech-pkg
Date: 07/11/2006 22:21:06
> Trying to link a binary on MacOS X (10.4.7) I get the following  
> warnings:
[...]
> regexp.o definition of _regcomp in section (__TEXT,__text)
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib 
> (regcomp.So) definition of _regcomp
> /usr/bin/ld: warning multiple definitions of symbol _regexec
[...]
> does anyone know why they appear and what they mean?

The linked on Mac OS X does not like multiple definitions of the same  
symbol. For example 'regcomp' is defined in libSystem.dylib and...  
somewhere else (regexp.o, I guess?).

Kind regards,
Adam