Resolving link errors from using two static libs that contain the same symbols
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