• 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
Resolving link errors from using two static libs that contain the same symbols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resolving link errors from using two static libs that contain the same symbols


  • Subject: Resolving link errors from using two static libs that contain the same symbols
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 08 Aug 2014 17:25:37 -0700

A colleague of mine is building an iOS app that includes two open-source static libraries. Unfortunately both of those libraries use the YAJL library and include its code, so when he links the app he gets errors complaining about duplicate symbols like _yajl_status_to_string, etc.

Is there any way around this, short of messing with the projects that build one or the other library and taking out the yajl source files? Basically I'm wondering if there's a linker flag that suppresses duplicate-symbol errors. (Obviously this could have very bad results if the two libraries were using different/incompatible versions of the YAJL library, but in this case they aren't.)

—Jens
 _______________________________________________
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: Resolving link errors from using two static libs that contain the same symbols
      • From: Roland King <email@hidden>
  • Prev by Date: Re: Code signing, Helper tools/apps, Recent changes
  • Next by Date: Re: Resolving link errors from using two static libs that contain the same symbols
  • Previous by thread: Re: OS X 10.9.4, Xcode 5.1.1 and mysql-5.6.20-osx10.8-x86_64
  • Next by thread: Re: Resolving link errors from using two static libs that contain the same symbols
  • Index(es):
    • Date
    • Thread