From: Daniel Berger Date: 2007-01-24T04:00:11+09:00 Subject: Re: How do I tell extconf.rb/mkmf NOT to try and use cl.exe Wes Gamble wrote: > I'm trying to compile an extension on Windows using ruby extconf.rb. > > However, if I try it in Cygwin or in a command window (with MinGW's bin > directory in the PATH), it fails and the mkmf.log file shows that the > "cl" executable is being run. > > I don't have a "cl" on my Windows system, so I need gcc to be used. > > How do I indicate to mkmf.rb that I'm running under Cygwin or MinGW? > > Thanks, > Wes Within your extconf.rb file, "$CC = gcc" should work Or, set your CC environment variable. Regards, Dan