preferred dyn loader with UB


    Mar 12 2007 | 1:31 pm
    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?

    • Mar 12 2007 | 1:41 pm
      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
    • Mar 12 2007 | 1:44 pm
      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.
    • Mar 12 2007 | 1:54 pm
      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.