Subject:
Re: [ruby-ffi] invalid ELF header on hello world example
From:
Wayne Meissner
Date:
5/26/10 6:50 PM
To:
ruby-ffi@googlegroups.com

On 27 May 2010 09:28, Luis Lavena <luislavena@gmail.com> wrote:
> But LIBC is not defined in that context, better be explicit:
>
> ffi_lib FFI::Library::LIBC
>
> Works even on Windows ;-)

Thanks Luis.  That example is fixed now.  (there could be others that
either don't have a ffi_lib call, or aren't correct, but I haven't
looked for them).

Yup, working on windows (and AIX, which uses something strange like
libc.a(shr_64.o)) is what that constant is for.  Even ffi_lib 'c'
should work on all of them, since ffi_lib looks for 'c' and converts
it back to FFI::Library::LIBC.