Re: using symbols from dylib
Re: using symbols from dylib
- Subject: Re: using symbols from dylib
- From: koko <email@hidden>
- Date: Mon, 30 May 2011 14:21:45 -0600
Thanks, Ken, I now link with the dylib and life is good.
Are there any 'gotchas' on installing (using PackageMaker, for example) dylib's into /usr/local/lib ?
-koko
On May 30, 2011, at 12:24 AM, Ken Thomases wrote:
> On May 29, 2011, at 10:51 PM, koko wrote:
>
>> I have set Library Search Paths to /usr/local/lib
>>
>> I do dlopen successfully for a dylib in the above path.
>>
>> But, when I access a function the dylib I get a link error.
>
> If you dynamically load a library using dlopen, then you have to use dlsym to access its symbols.
>
> If you want to use the symbols from a library more naturally, then you have to link against it (or a stub). You also have to make the proper arrangements for it to be loaded at runtime. That is, you have to make sure the library is present on the host system and can be located via the install path.
>
> Read Apple's Dynamic Library Programming Topics:
> http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/DynamicLibraries/
>
> Regards,
> Ken
>
>
_______________________________________________
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