Hi,

I'm new to Ruby, so please bear with me through dumb questions :).

I tried building eRuby under windows with the GCC that came with cygwin. If
I build it from the bash shell, it works ok.

However, since I have one installation of ruby (under cygwin in
/usr/local/bin) and another under windows (c:\ruby\bin), I'd like to build
eRuby for both installations.

Unfortunatelly, I don't have Visual C installed, and I can't afford it
either. So that's how I got to GCC.

I was wondering if you could shed some light on building eRuby so I can get
on with my configuration.

Let me step you through what I have done so far.
1. Run "ruby configure.rb" from under CMD.EXE to create the makefile with
the right path. Then rename this file to Makefile.win
2. Run "./configure.rb" from bash to create the makefile with the right gcc
options.
3. Try to merge the two keeping the paths from Makefile.win and the GCC
options from Makefile.

So here's what I changed in the Makefile:

arch = i386-mswin32
DESTDIR = c:
prefix = $(DESTDIR)/ruby
RUBY_SO_NAME = mswin32-ruby17

When I run make from CMD, I get the following error:
gcc -g -O2 -DUSEIMPORTLIB -Wall -I. -Ic:/ruby/lib/ruby/1.7/i386-mswin32 -c
eruby_lib.c
In file included from eruby_lib.c:36:
c:/ruby/lib/ruby/1.7/i386-mswin32/ruby.h:131: warning: parameter names
(without types) in function declaration
c:/ruby/lib/ruby/1.7/i386-mswin32/ruby.h:244: parse error before `rb_num2ll'
c:/ruby/lib/ruby/1.7/i386-mswin32/ruby.h:244: warning: type defaults to
`int' in declaration of `rb_num2ll'
c:/ruby/lib/ruby/1.7/i386-mswin32/ruby.h:244: warning: data definition has
no type or storage class
c:/ruby/lib/ruby/1.7/i386-mswin32/ruby.h:245: parse error before
`rb_num2ull'
c:/ruby/lib/ruby/1.7/i386-mswin32/ruby.h:245: warning: type defaults to
`int' in declaration of `rb_num2ull'
c:/ruby/lib/ruby/1.7/i386-mswin32/ruby.h:245: warning: data definition has
no type or storage class
In file included from c:/ruby/lib/ruby/1.7/i386-mswin32/ruby.h:647,
                 from eruby_lib.c:36:
c:/ruby/lib/ruby/1.7/i386-mswin32/intern.h:74: warning: parameter names
(without types) in function declaration
c:/ruby/lib/ruby/1.7/i386-mswin32/intern.h:76: parse error before
`rb_big2ll'
c:/ruby/lib/ruby/1.7/i386-mswin32/intern.h:76: warning: type defaults to
`int' in declaration of `rb_big2ll'
c:/ruby/lib/ruby/1.7/i386-mswin32/intern.h:76: warning: data definition has
no type or storage class
c:/ruby/lib/ruby/1.7/i386-mswin32/intern.h:77: parse error before
`rb_big2ull'
c:/ruby/lib/ruby/1.7/i386-mswin32/intern.h:77: warning: type defaults to
`int' in declaration of `rb_big2ull'
c:/ruby/lib/ruby/1.7/i386-mswin32/intern.h:77: warning: data definition has
no type or storage class
make: *** [eruby_lib.o] Error 1

Here are the tools :
OS : Windows 2000, SP2
GCC : gcc version 2.95.3-5 (cygwin special)
Ruby (win) : ruby 1.7.2 (2002-03-20) [i386-mswin32]
Ruby (cygwin) : ruby 1.7.2 (2002-03-29) [i686-cygwin]

The cygwin version is build from the CVS Tree, except the ext/socket folder
which is from from 1.6.7 (1.7 kept giving me an error).

Anyone had any experience with it ?

Thank you very much,
philip