preferred dyn loader with UB

Mar 12, 2007 at 1:31pm

preferred dyn loader with UB

Hey dev-folk –

I’m assuming that the good old CFBundleLoadExecutable() family of
functions for loading bundled libs is gone gone gone when trying
Xcode/UB compiling. What’s the preferred loading system now, to
use the NSLinkModule() stuff? Any caveats to pass along in
advance?

brad

http://music.columbia.edu/~brad

#30761
Mar 12, 2007 at 1:41pm

On Mar 12, 2007, at 8:31 AM, garton@columbia.edu wrote:

> Hey dev-folk –
>
> I’m assuming that the good old CFBundleLoadExecutable() family of
> functions for loading bundled libs is gone gone gone when trying
> Xcode/UB compiling. What’s the preferred loading system now, to
> use the NSLinkModule() stuff? Any caveats to pass along in
> advance?

Hi Brad!

There is no problem using CFBundleLoadExecutable() for UB compiling.
We use this ourselves in Max for loading externs and plug-ins and
whatsuch.

Not the exact same function, but related functions are used in this
snippet of code:

http://jamoma.svn.sourceforge.net/viewvc/jamoma/branches/
experimental_core/Jamoma/library/externals/jcom.parameter/c74/
ext_pattr_bundle.c?revision=1207&view=markup&pathrev=1385

best wishes,
Tim

#98922
Mar 12, 2007 at 1:44pm

CFBundleLoadExecutable() works fine in my experience.

jb

Am 12.03.2007 um 14:31 schrieb garton@columbia.edu:

> I’m assuming that the good old CFBundleLoadExecutable() family of
> functions for loading bundled libs is gone gone gone when trying
> Xcode/UB compiling.

#98923
Mar 12, 2007 at 1:54pm

Quoting Jeremy Bernstein :

> CFBundleLoadExecutable() works fine in my experience.

Thanks guys — this makes my life a lot easier in the next day or
two!

Is there any compelling reason to go to NSLinkModule() stuff? I
suppose I should try it someday. We use it internally in RTcmix,
so I’ve got some code handy I could snarf.

brad

http://music.columbia.edu/~brad

#98924

You must be logged in to reply to this topic.