Re: multiple definitions of symbol - how to resolve?
Re: multiple definitions of symbol - how to resolve?
- Subject: Re: multiple definitions of symbol - how to resolve?
- From: "Shawn Erickson" <email@hidden>
- Date: Mon, 7 May 2007 10:37:48 -0700
On 5/7/07, Andreas Mayer <email@hidden> wrote:
ld is complaining about multiple definitions:
/usr/bin/ld: warning multiple definitions of symbol _asinhf
/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-apple-
darwin8/4.0.1/../../../libmx.dylib(single module) definition of _asinhf
/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-apple-
darwin8/4.0.1/../../../libSystem.dylib(floating.o) definition of _asinhf
While I'm using trigonometry functions, I'm not including any of the
above libraries directly. How do I resolve this?
Try adding "-lSystem" to "Other Linker Flags" (OTHER_LDFLAGS). Not
sure why this happens but being explicit about linking against
libSystem seems o make things happy... YMMV.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden