Building extensions under Windows

I’m sure this has been discussed a hundred times, but searching for "cygwin"
in the Ruby-Talk archive gives a million results. I’d appreciate it if
someone could point me at an appropriate archive entry.

What I’m trying to do is build the calendar extension for a mate of mine.
When I run “ruby install.rb config” the Makefile it generates contains what
look like Microsoft command-line compiler commands.

Does this imply that the extensions can only be built with VC, or is there
some way to tell it I have cygwin (and hence gcc) installed and that it
should generate a Makefile that uses cygwin?

Thanks in advance,

Harry O.

That’s not possible.
If your Ruby.exe is compiled with MSVC, hence MSVCRT.LIB (MSVC or mingw),
you MUST use MSVC or mingw.
So, trust your Ruby installation and your rubyconf.rb file and use it
your build your makefiles.

If cannot afford MSVC, use mingw and try to download the MSVCRT.LIB
somewhere.

Pierre Brengard

Harry Ohlsen wrote:

···

I’m sure this has been discussed a hundred times, but searching for "cygwin"
in the Ruby-Talk archive gives a million results. I’d appreciate it if
someone could point me at an appropriate archive entry.

What I’m trying to do is build the calendar extension for a mate of mine.
When I run “ruby install.rb config” the Makefile it generates contains what
look like Microsoft command-line compiler commands.

Does this imply that the extensions can only be built with VC, or is there
some way to tell it I have cygwin (and hence gcc) installed and that it
should generate a Makefile that uses cygwin?

Thanks in advance,

Harry O.