dylib library from
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