[Win32utils-devel] MSVC and FFI build warnings

Daniel Berger djberg96 at gmail.com
Fri Jan 20 01:47:05 EST 2012


Hi,

I noticed a couple warnings with FFI on Windows Vista with VC++ 9:

.\src\x86\win32.asm(842) : warning A6004:procedure argument or local not
referenced : FORCEFRAME
.\src\x86\win32.asm(995) : warning A6004:procedure argument or local not
referenced : FORCEFRAME

Thread.c
Thread.c(224) : warning C4101: 'res' : unreferenced local variable
Thread.c(255) : warning C4101: 'res' : unreferenced local variable
Thread.c(254) : warning C4101: 'state' : unreferenced local variable

I also seem to be having trouble with 1.8.7. It builds fine, but won't load:

irb(main):001:0> require 'ffi'
LoadError: 127: The specified procedure could not be found.   - Init_ffi
c:/rubyvc9/lib/ruby/site_ruby/1.8/i386-msvcr90/ffi.so
        from c:/rubyvc9/lib/ruby/site_ruby/1.8/i386-msvcr90/ffi.so
        from (irb):1
        from :0

I tried both the manual approach and the "gem install" approach. Seems to be
ok on my 1.9.2 built with VC9, though.

Regards,

Dan



More information about the win32utils-devel mailing list