From: nobu.nokada@... Date: 2002-09-12T13:57:30+09:00 Subject: Re: Windows XP : RubyInline 1.0.4 Released! (fwd) Hi, At Thu, 12 Sep 2002 12:19:13 +0900, Shashank Date wrote: > I was able to make some progress by modifying inline.rb to read the correct > ENV variables and got to the point where it did: > > C:\> > cl -LD -nologo -MD -DNT=1 -Zi -O2b2xg- -G5 -Ic:\ruby\lib\ruby\1.7\i386-mswin > 32 C:\WINDOWS\TEMP\Mod_MyTest_fastfact.c Libraries are missing. GNU ld ignores undefined symbols in shared object by default, and VC link.exe doesn't. Untested patch. --- inline.rb~ Wed Sep 11 02:21:23 2002 +++ inline.rb Thu Sep 12 13:54:37 2002 @@ -34,4 +34,5 @@ module Inline cc = "#{Config::CONFIG['LDSHARED']} #{Config::CONFIG['CFLAGS']} -I #{hdrdir}" + libs = "#{Config::CONFIG['LIBRUBYARG']} #{ConfigCONFIG['LIBS']}" src_name = "#{tmpdir}/#{mod_name}.c" puts "Building #{so_name} with '#{cc}'" @@ -58,5 +59,5 @@ module Inline # Compiling - `#{cc} -o #{so_name} #{src_name}` + `#{cc} -o #{so_name} #{src_name} #{libs}` end -- Nobu Nakada