Re : RubyInline 3.6.3 Released

Hi,

I’ve recently had the same issues trying to recompile the ParseTree
library (which uses RubyInline) on windows XP.

It looks like the version of VS studio I use is too new compared to the
one that’s used to compile the ruby version delivered with the one-click
installer on windows.

This is why I’ve been desperately looking for Visual C++ 2003 but I
couldn’t find it over the net, even with an MSDN account.

If somebody on the list knows where we could download compiler (or even,
in my case, can send me the parse tree lib,…), that would be very
nice.

Thanks,

Eric.


Eric TORREBORRE
tel: +81 (0)90 5580 3280
e-mail: [email protected] / [email protected]
blog: http://etorreborre.blogspot.com

----- Message d’origine ----
De : Haoqi H. [email protected]
À : ruby-talk ML [email protected]
Envoyé le : Samedi, 28 Avril 2007, 12h36mn 40s
Objet : Re: RubyInline 3.6.3 Released

hello,I added “ENV[‘HOME’]=‘./’”,then get errors:

cl : Command line warning D9035 : option ‘Og-’ has been deprecated and
will be removed in a future release
cl : Command line warning D9035 : option ‘o’ has been deprecated and
will be removed in a future release
cl : Command line warning D9002 : ignoring unknown option ‘-G6’
c:/ruby/lib/ruby/gems/1.8/gems/RubyInline-3.6.3/lib/inline.rb:391:in
build': error executing cl -nologo -LD -MD -Zi -O2b2xg- -G6 -I c:/ruby/lib/ruby/1.8/i386-mswin32 -I c:/ruby/include -o "./.ruby_inline/Inline_MyTest_cb89.so" "C:/ruby_in_line/.ruby_inline/Inline_MyTest_cb89.c" -link /LIBPATH:"c:/ruby/lib" /DEFAULTLIB:"msvcrt-ruby18.lib" /INCREMENTAL:no /EXPORT:Init_Inline_MyTest_cb89: 512 (CompilationError) Renamed ./.ruby_inline/Inline_MyTest_cb89.c to ./.ruby_inline/Inline_MyTest_cb89.c.bad from c:/ruby/lib/ruby/gems/1.8/gems/RubyInline-3.6.3/lib/inline.rb:660:in inline’
from test2.rb:6

require “pp”
require “inline”
ENV[‘HOME’]=‘./’
class MyTest
inline do |builder|
builder.c "
long factorial(int max) {
int i=max, result=1;
while (i >= 2) { result *= i–; }
return result;
}"
end
end
t = MyTest.new()
factorial_5 = t.factorial(5)


Posted via http://www.ruby-forum.com/.


Découvrez une nouvelle façon d’obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des
internautes sur Yahoo! Questions/Réponses