• 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
Linker fails to link in static library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Linker fails to link in static library
      • From: Xochitl Lunde <email@hidden>
  • Prev by Date: Re: Xcode 3.2.5 keeps crashing
  • Next by Date: Re: App Crashes When Built with Xcode 3.2.5
  • Previous by thread: Re: App Crashes When Built with Xcode 3.2.5
  • Next by thread: Re: Linker fails to link in static library
  • Index(es):
    • Date
    • Thread