Linker fails to link in static library
Linker fails to link in static library
- Subject: Linker fails to link in static library
- From: Philip White <email@hidden>
- Date: Mon, 17 Jan 2011 16:20:34 -0600
OK, this one is really confusing me. I have a project that creates a static library that I use in some other projects. I've been using this for a year or so, no problem. I add another target to the project, also a static library. The only thing different is this new target doesn't have a special build rule that the first one did. Everything compiles fine. I add the resulting library to another project, make sure it is listed in the "Link Binary with Libraries" phase for the appropriate target, and try to build, but the linker gives me an error for every reference to a function from the library.
So from the command line I run otool -Sv libmylibrary.a and all of the symbols that the linker fails to find are there; so why can't the linker find them.
I just don't understand; I've made static libraries in Xcode before, no problem. Why can't I do the same with a new target in an existing project?
Any tips would be most welcome!
Thanks,
Philip
_______________________________________________
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