I have the following problem: I’m linking against the Admob library which contains some part of the GData API. But I also want to link with the GData static library to use it directly in my own application.
Of course, I get duplicate symbols at link time.
How can I avoid that?
The Objective-C GData library includes a header, GDataTargetNamespace.h, with macros to redefine every class in the library.
You can include the header in your project and define a prefix in your target build settings, like
-DGDATA_TARGET_NAMESPACE=MyApp
That will add the prefix to every class in the GData library for your application.
This is really a bug in the Admob library, though.