• 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 to override dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static to override dylib


  • Subject: Re: static to override dylib
  • From: "R.L. Grigg" <email@hidden>
  • Date: Mon, 14 Jul 2008 13:44:49 -0700

Oh thats great news! I didnt know it was implemented to do that.
Thx!
Russ

On Jul 14, 2008, at 11:51 AM, Chris Espinosa wrote:


On Jul 14, 2008, at 11:38 AM, R.L. Grigg wrote:

Just thinking out loud... Wouldn't it make sense that if you explicitly include libxyz.a that this would tell the linker that you do not want to link against libxyz.dylib? This would sure simplify things and save a lot of headaches.

This is in fact the recommended solution. Given -lxyz, the linker will always prefer libxyz.dylib to libxyz.a in the same directory. You override this by providing an explicit full path to /usr/lib/ libxyz.a, which you can do in Other Linker Flags in Xcode.


Chris


_______________________________________________ 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 to override dylib (From: Jake <email@hidden>)
 >Re: static to override dylib (From: Peter O'Gorman <email@hidden>)
 >Re: static to override dylib (From: "R.L. Grigg" <email@hidden>)
 >Re: static to override dylib (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: C++ Static library fails to link for some code, relocatable object works fine
  • Next by Date: Re: C++ Static library fails to link for some code, relocatable object works fine
  • Previous by thread: Re: static to override dylib
  • Next by thread: Re: static to override dylib
  • Index(es):
    • Date
    • Thread