• 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 and dynamic linking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

static and dynamic linking


  • Subject: static and dynamic linking
  • From: Kevin Dixon <email@hidden>
  • Date: Mon, 17 Nov 2008 19:24:45 -0800

Is there any way to specify and/or force Xcode (I'm using 2.4 btw) to statically link against a library? For example, I downloaded an open-source library, then built it into its .a and .dylib components, using its ./configure script.

I put a reference to the ".a" file into my project, because I don't want the hassle of distributing extra files with my application. To my surprise, it built dynamically linking against the file. It wasn't until I moved the .dylib files out of the same folder that it linked statically properly. This seems like a bit of a hack. Any advise?

-Kevin
_______________________________________________
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 and dynamic linking
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: Re: App crashes when launched from finder, but not when launched from debugger or command line
  • Next by Date: ORGANIZATIONNAME -- __MyCompany__ -- Not in User Defaults?!?
  • Previous by thread: Re: break points in library not found
  • Next by thread: Re: static and dynamic linking
  • Index(es):
    • Date
    • Thread