Subject:
[ruby-ffi] Re: Multiple libraries included via dlopen()?
From:
mjmac
Date:
12/16/10 7:46 PM
To:
ruby-ffi

On Dec 16, 6:38 pm, Wayne Meissner <wmeiss...@gmail.com> wrote:
> On 17 December 2010 09:07, mjmac <mjma...@gmail.com> wrote:
> Try specifying the library flags before calling ffi_lib
> e.g.
>
>   ffi_lib_flags :global, :lazy
>   ffi_lib 'slurm'
>
> By default, FFI loads libraries as :lazy, :local so symbols are not
> exported into the global namespace.

Sweet!  I hackported this from master to 0.6.3 and it works
perfectly.  I'm still prototyping so this is a workable solution for
now.

Thanks a ton (for the advice, and for FFI)!

Mike