Hi, I think that Make_cyg.mak needs some additional include dirs for ruby 1.9. After applying the attached patch, I can compile with the following command:
$ make -f Make_cyg.mak CC=gcc-3 CXX=g++-3 RUBY='/path/to/ruby1.9.3' RUBY_VER=19 RUBY_VER_LONG=1.9.1 Using i686-pc-mingw32-gcc instead of gcc-3 also works, but i686-w64-mingw32-gcc doesn't seem to work for ruby interface. Best regards, Ken Takata -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
# HG changeset patch # Parent 931e07c83ea711db8caecb4393f7a592d36ed560 diff --git a/src/Make_cyg.mak b/src/Make_cyg.mak --- a/src/Make_cyg.mak +++ b/src/Make_cyg.mak @@ -21,7 +21,11 @@ # TCL_VER define to version of TCL being used (83) # DYNAMIC_TCL no or yes: use yes to load the TCL DLL dynamically (yes) # RUBY define to path to Ruby dir to get Ruby support (not defined) -# RUBY_VER define to version of Ruby being used (16) +# RUBY_VER define to version of Ruby being used (16) +# RUBY_VER_LONG same, but in format with dot. (1.6) +# You must set RUBY_VER_LONG when changing RUBY_VER. +# You must set RUBY_API_VER version to RUBY_VER_LONG. +# Don't set ruby API version to RUBY_VER like 191. # DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (yes) # MZSCHEME define to path to MzScheme dir to get MZSCHEME support (not defined) # MZSCHEME_VER define to version of MzScheme being used (209_000) @@ -218,7 +222,7 @@ endif DEFINES += -DFEAT_RUBY -INCLUDES += -I$(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM) +INCLUDES += -I$(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM) -I$(RUBY)/include/ruby-$(RUBY_VER_LONG) -I$(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM) EXTRA_OBJS += $(OUTDIR)/if_ruby.o ifeq (yes, $(DYNAMIC_RUBY))
