• 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
The missing link
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The missing link


  • Subject: The missing link
  • From: Kenny Leung <email@hidden>
  • Date: Mon, 6 Nov 2006 20:05:29 -0800

Hi All.

I'm having linking issues, and I must say that the linking of frameworks on MacOSX continues to be a mystery to me.

I am working on an application with embedded frameworks (well, multiple embedded frameworks). That all works properly, so I think I'm doing everything right there. The problem comes in when I try to use a third party framework from one of my frameworks. My framework builds fine, but when the application builds, I get this error:

ld: warning can't open dynamic library: @executable_path/ Eve3.framework/Versions/A/Eve3 referenced from: /Users/kenny/build/ SYMROOT/Debug/QCPrivate.framework/QCPrivate (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:
_RBEFINDFIRST referenced from QCPrivate expected to be defined in @executable_path/Eve3.framework/Versions/A/Eve3
_RBEHANDLE referenced from QCPrivate expected to be defined in @executable_path/Eve3.framework/Versions/A/Eve3
/usr/bin/libtool: internal link edit command failed


I also included the framework into the application, but the result is the same.
I have the framework installed in /Library/Frameworks, even though otool shows that its install location is:


kenny@alumintel>otool -L Eve3
Eve3:
@executable_path/Eve3.framework/Versions/A/Eve3 (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/ CoreServices (compatibility version 1.0.0, current version 18.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.2)


Now I'm pretty sure that the intall path is incorrect, but I'm not sure what I can do to remedy this.

Another mystery is that I can successfully build an application that links against the third part framework. It's just the application linking against my framework linking against the third party framework that breaks.

As always, help is greatly appreciated.

-Kenny

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: The missing link
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Scroll the text in NSTextField
  • Next by Date: Re: Setting icon with make file
  • Previous by thread: Re: Odd problem with NSOutlineView
  • Next by thread: Re: The missing link
  • Index(es):
    • Date
    • Thread