Subject: [ruby-ffi] Re: puts example fails in doze |
From: rogerdpack |
Date: 12/18/09 12:22 PM |
To: ruby-ffi |
appears it needed an extra ffi_lib 'crtdll' in there.
Question.
the demo code
module Hello
extend FFI::Library
attach_function 'puts', [ :string ], :int
end
Hello.puts("Hello, World")
works in linux without doing an explicit ffi_lib call...I'm curious as
to why windows require ffi_lib 'msvcrt', when it is linked against
msvcrt in the beginning to start with (I guess)?
Any ideas there?
Thanks.
-r