From: Luis Lavena Date: 2011-03-05T08:40:43+09:00 Subject: Re: extconf.rb spitting out SH Makefile on windows? On Mar 3, 8:40 pm, Mr Eiland wrote: > Title says it all, I'm running ruby extconf.rb in a visual studio 2008 > pro command prompt and the resulting Makefile is not for nmake. > What version of Ruby are you using? From what you say sounds like you're using RubyInstaller, which used GCC -- not Visual Studio -- as compiler toolchain. > All I'm wanting is to create a single function that I can call into. > I'm not willing to use SWIG, I see no reason to add more moving parts > for something that should be so simple. > SWIG has nothing to do with compiler toolchain. > Ultimately, if I could find documentation on how to set up the visual > studio C++ environment so that I could compile the extension without the > use extconf.rb, I would prefer that, but using extconf.rb is the next > best thing. > extconf.rb is required to create a Makefile compatible with Ruby. Please read README.EXT that is bundled in Ruby source code. Also, if you want Ruby with Visual Studio, build it or use the ones from GarbageCollect page: http://www.garbagecollect.jp/ruby/mswin32/en/ Be aware to instal the missing binaries: http://www.garbagecollect.jp/ruby/mswin32/en/documents/install.html -- Luis Lavena