• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: multiple definitions of symbol - how to resolve?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: multiple definitions of symbol - how to resolve?
      • From: Andreas Mayer <email@hidden>
References: 
 >multiple definitions of symbol - how to resolve? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: easy access to file type?
  • Next by Date: [FAQ] Jump to Definition problem
  • Previous by thread: multiple definitions of symbol - how to resolve?
  • Next by thread: Re: multiple definitions of symbol - how to resolve?
  • Index(es):
    • Date
    • Thread