Re: Trying to understand executable bundle loading
Re: Trying to understand executable bundle loading
- Subject: Re: Trying to understand executable bundle loading
- From: Greg Guerin <email@hidden>
- Date: Tue, 8 Aug 2006 10:02:48 -0700
Craig Morris wrote:
>If I actually copy mylib.dylib to /usr/local/lib, the program runs fine,
>but I suspect it has now loaded two different copies of that code and I
>really don't want the dylib to live there.
I suspect the problem is your lib's embedded name. Use the 'otool'
command, which has several options, to list the names of the lib itself and
the other libs it references. See 'man otool'.
If you don't change the Installation Directory build setting, I think
"/usr/local/lib" is the default value. That is then written to the lib
when it's linked. I change mine to ".", but my target isn't a bundle.
If the above is completely wrong, I expect someone will quickly correct me.
You can probably find more info on the correct bundle build settings by
searching ADC for keywords like bundle and executable.
-- GG
_______________________________________________
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