Re: Linking Tool to nested dylib: "Library not loaded…"
Re: Linking Tool to nested dylib: "Library not loaded…"
- Subject: Re: Linking Tool to nested dylib: "Library not loaded…"
- From: Fritz Anderson <email@hidden>
- Date: Mon, 24 Oct 2011 11:18:23 -0500
On 24 Oct 2011, at 11:11 AM, Jerry Krinock wrote:
> I've built a command-line tool whose sole purpose is to test a dylib I've written. My test tool is linked to the dylib, and the dylib itself is linked to some 3rd-party dylibs.
>
> My command-line tool crashes on launch…
>
> dyld: Library not loaded: @executable_path/libmozalloc.dylib
> Referenced from: /Users/jk/Builds/Debug/TestTool
> Reason: image not found
>
> where libmozalloc.dylib is one of the four 3rd-party dylibs.
>
> The size of my dylib product is 310 KB.
> The size of test tool product is 13 KB.
>
> What am I doing wrong?
I'll start with a literal reading of the error message: Is there a file /Users/jk/Builds/Debug/libmozalloc.dylib? Does it contain an architecture that's the same as TestTool's architecture?
— F
_______________________________________________
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