From: Eric Hodel Date: 2006-09-19T04:09:55+09:00 Subject: Re: Using RubyInline for Optimization On Sep 16, 2006, at 5:18 PM, Mike Berrow wrote: > Eric Hodel wrote: >> You need the MS C compiler. > > Well, now I've downloaded and installed Visual C++ 2005 express > edition in order to get that. I also upgraded the RubyInline gem > to the latest, greatest 3.6.0 version. > > [...] > > So, anyway, here is what RubyInline gives me now ... > > C:\ruby\lib\ruby\gems\1.8\gems\RubyInline-3.6.0\demo>ruby hello.rb > cl : Command line warning D9035 : option 'Og-' has been deprecated and > will be r > emoved in a future release > cl : Command line warning D9035 : option 'o' has been deprecated and > will be rem > oved in a future release > cl : Command line warning D9002 : ignoring unknown option '-G6' > c:/ruby/lib/ruby/gems/1.8/gems/RubyInline-3.6.0/./inline.rb:404:in > `build': erro > r executing cl -nologo -LD -MD -Zi -O2b2xg- -G6 -I > c:/ruby/lib/ruby/1.8/i386-ms > win32 -o > "C:\ruby\lib\ruby\gems\1.8\gems\RubyInline-3.6.0\demo/.ruby_inline/ > Inli > ne_Hello_5d41.so" > "C:/ruby/lib/ruby/gems/1.8/gems/RubyInline-3.6.0/demo/.ruby_in > line/Inline_Hello_5d41.c" -link /LIBPATH:"c:/ruby/lib" > /DEFAULTLIB:"msvcrt-ruby > 18.lib" /INCREMENTAL:no /EXPORT:Init_Inline_Hello_5d41: 512 > (CompilationError) > Renamed > C:\ruby\lib\ruby\gems\1.8\gems\RubyInline-3.6.0\demo/.ruby_inline/ > Inline > _Hello_5d41.c to > C:\ruby\lib\ruby\gems\1.8\gems\RubyInline-3.6.0\demo/.ruby_inli > ne/Inline_Hello_5d41.c.bad from > c:/ruby/lib/ruby/gems/1.8/gems/RubyInline-3 > .6.0/./inline.rb:624:in `inline' > from hello.rb:7 > > Hmmm. Am I getting closer? Did you build ruby with this compiler? > BTW. I am using the "One-Click Ruby Installer for Windows" as my Ruby > installation. ... no You need to use the same compiler for building both Ruby and any extensions, inline or not. The simple solution, now that you have a compiler, is to build and install a new ruby. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com