• 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
static libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

static libraries


  • Subject: static libraries
  • From: Steve Checkoway <email@hidden>
  • Date: Fri, 21 Oct 2005 15:46:13 -0700

I'm trying to link a few static libraries that I've built for a particular project. I dragged the libraries into my XCode project and built. XCode didn't use those libraries but passed -llibrary to ld. I never would have noticed that XCode did not do what I wanted except that one of the libraries does not exist in the standard library paths.

More concretely, I built libpng.a and dragged that into my project. I was expecting to see /path/to/libpng12.a as an argument to ld. Instead, I see -lpng12.

Is there a way to get XCode to do what I told it to do, namely, use the static library I included in the project, or do I need to pass '- L/path/to -search_paths_first' to ld? Since this is going though gcc first, I suppose I'd need to put '-L/path/to -Wl,-search_paths_first' in the LDFLAGS.

- Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: static libraries
      • From: Andreas Grosam <email@hidden>
  • Prev by Date: Re: [OT] Proper place to ask very basic Xcode/C++ questions?
  • Next by Date: Proper address for Xcode feedback
  • Previous by thread: Re: iTunes style UI
  • Next by thread: Re: static libraries
  • Index(es):
    • Date
    • Thread