From: Quintus Date: 2011-03-04T22:24:53+09:00 Subject: Re: extconf.rb spitting out SH Makefile on windows? Am 04.03.2011 07:10, schrieb Eric Christopherson: > On Thu, Mar 3, 2011 at 5: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. >> >> 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. >> >> 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. > > Since no one's chimed in yet, I thought I would just post to say you'd > be best served installing the RubyInstaller DevKit, which includes gcc > and GNU make. Others might know of ways to integrate Ruby with VS, but > the conventional wisdom seems to be to use DevKit. > > I'd wonder if it was possible with Visual Studio anyway--All recent Rubies have been compiled with gcc (via MinGW/MSYS), and incorporating a C extension compiled with another compiler is not possible I think. The OP would have to compile Ruby with MSVC as well. Valete, Marvin