Subject: Re: [ruby-ffi] Re: puts example fails in doze |
From: Luis Lavena |
Date: 12/11/09 6:04 PM |
To: ruby-ffi@googlegroups.com |
On Fri, Dec 11, 2009 at 8:34 PM, rogerdpack <rogerpack2005@gmail.com> wrote:
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?My question, too--how does one know which version of msvcrt.dll to import.
RbConfig::CONFIG['sitearch'] contains the CRT information, also on Windows is being prepend to RbConfig::CONFIG['RUBY_SO_NAME'] Extrapolate the DLL name from it should not be a problem.-- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exupéry