Subject: Re: [ruby-ffi] Re: puts example fails in doze |
From: Wayne Meissner |
Date: 12/11/09 5:27 PM |
To: ruby-ffi@googlegroups.com |
2009/12/12 rogerdpack <rogerpack2005@gmail.com>:
in windows, this code fails: require 'ffi' module Hello extend FFI::Library attach_function 'puts', [:string], :int end Hello.puts("Hello, World")appears it needed an extra ffi_lib 'crtdll'
I just updated the samples to use FFI::Library::LIBC as the library. That resolves to 'libc.so.6' on linux, and 'msvcrt.dll' on windows. Can someone verify that blindly using msvcrt.dll like that won't cause problems on windows?