• 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: Linking against a re-exported library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking against a re-exported library


  • Subject: Re: Linking against a re-exported library
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 31 Dec 2013 10:13:37 -0800

On Tue, Dec 31, 2013, at 10:05 AM, Kyle Sluder wrote:
>
> % otool -D lib/libpq.5.6.dylib
> lib/libpq.5.6.dylib:
> @loader_path/../lib/libpq.5.6.dylib
>
> # -- xcode build output from model framework target:
>
> ld: file not found:
> [...]/Build/Products/Debug/PostgreSQL.framework/../lib/libpq.5.6.dylib
> for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> But this is (a little) progress, as it's not trying to find a file on
> disk whose path contains "@rpath" or "@loader_path".

Bah! I've got it now. The @loader_path-relative install name should
_NOT_ include "..", because the lib/ directory is a peer of the
framework's dylib.

D'oh! Thanks Ken! (And, of course, Scott and Michael.)

--Kyle Sluder
 _______________________________________________
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: 
 >Linking against a re-exported library (From: Kyle Sluder <email@hidden>)
 >Re: Linking against a re-exported library (From: Ken Thomases <email@hidden>)
 >Re: Linking against a re-exported library (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Linking against a re-exported library
  • Next by Date: Re: Linking against a re-exported library
  • Previous by thread: Re: Linking against a re-exported library
  • Next by thread: Re: Linking against a re-exported library
  • Index(es):
    • Date
    • Thread