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

dylib library from


  • Subject: dylib library from
  • From: David Hinz <email@hidden>
  • Date: Mon, 17 Mar 2008 22:49:14 -0600


What are the steps necessary to use a standard dynamic C++ library from one project in another project?

I created a dylib library in one project and then dragged the .h file and dylib library from that project to another project.  The application links with the library but when I try to run it I get the following error:

dyld: Library not loaded: /usr/local/lib/libXYZ.dylib
  Referenced from: /Users/dhinz/Projects/TestCode/TestRandomFile/build/Debug/TestRandomFile
  Reason: image not found

If I copy the library into /usr/local/lib then the program runs without error.  I'm sure there is a way to run without copying the library into /usr/local/lib but I haven't been able to figure it out from the documentation.

The library search paths look correct.  Are they used for compiling and while running?

Where is this documented?

Is it possible to create a framework with the dylib and .h file?


Thanks,
David.


 _______________________________________________
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: dylib library from
      • From: Michael Rice <email@hidden>
    • Re: dylib library from
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: Preprocessor log?
  • Next by Date: Re: Xcode 3.0 crashes and 32-bit mode
  • Previous by thread: Re: Framework Links Work OK in 10.5 and 10.4, Crash in 10.3
  • Next by thread: Re: dylib library from
  • Index(es):
    • Date
    • Thread