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

Re: static and dynamic linking


  • Subject: Re: static and dynamic linking
  • From: Steve Checkoway <email@hidden>
  • Date: Mon, 17 Nov 2008 19:38:14 -0800

On Mon, Nov 17, 2008 at 07:24:45PM -0800, Kevin Dixon wrote:
> Is there any way to specify and/or force Xcode (I'm using 2.4 btw) to

Is there some reason not to use 2.5?

> 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?

This has come up a number of times on this list. A search of the
archives will yield a number of solutions. One is to move the dylib
out of the way, another is to put the full path to the library into
whatever the Xcode equivalent of LDFLAGS (Additional Linker Flags
maybe?) is. See the archive for more details.

--
Steve Checkoway


 _______________________________________________
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

References: 
 >static and dynamic linking (From: Kevin Dixon <email@hidden>)

  • Prev by Date: ORGANIZATIONNAME -- __MyCompany__ -- Not in User Defaults?!?
  • Next by Date: Re: ORGANIZATIONNAME -- __MyCompany__ -- Not in User Defaults?!?
  • Previous by thread: static and dynamic linking
  • Next by thread: ORGANIZATIONNAME -- __MyCompany__ -- Not in User Defaults?!?
  • Index(es):
    • Date
    • Thread