On Fri, May 14, 2010 at 12:55 AM, Geert VL <[email protected]>wrote:

> Hi,
>
> I am trying to compile Vim 7.2.418 together with Ruby 1.9.1.
> I use Visual C++ 2008 Express edition.
>
> I use the following command line:
>
> nmake -f Make_mvc.mak GUI=yes MSVCVER=9.0 PYTHON=c:\Python26 RUBY=c:
> \Ruby19
>
> This gives me the following error:
>
> Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
> Python requested (version 26) - root dir is "c:\Python26"
> Ruby requested (version 19) - root dir is "c:\Ruby19"
>
> cl -c /W3 /nologo  -I. -Iproto -DHAVE_PATHDEF -DWIN32   -DFEAT_CSCOPE -
> D
> FEAT_NETBEANS_INTG      -DWINVER=0x0400 -D_WIN32_WINNT=0x0400  /Fo.
> \ObjGYR/ /Ox
> /GL -DNDEBUG  /Zl /MT -DFEAT_GUI_W32 -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT
> -DFEAT_PY
> THON -DFEAT_RUBY -DFEAT_BIG /Fd.\ObjGYR/ /Zi /I "c:\Ruby19\lib\ruby
> \1.9.1\i386-m
> ingw32" if_ruby.c
> if_ruby.c
> if_ruby.c(68) : fatal error C1083: Cannot open include file: 'ruby.h':
> No such f
> ile or directory
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 9.0\VC\BIN
> \cl.EXE"' : return code '0x2'
> Stop.
>
> I made the following changes in my Make_mvc.mak file for Ruby:
> RUBY_VER = 19
> RUBY_VER_LONG = 1.9.1
> RUBY_PLATFORM = i386-mingw32
>
>
> What did I do wrong?
>

I don't try to compile the ruby by myself, but i have some experience to
use the VS.
I think this is because that you did NOT tell the cl.exe the right INLUCDE
path which should including the "ruby header files"

So , try to add the "header file path" before you run the "nmake"
>>> set INCLUDE=Your_Ruby_Header_Path;%INCLUDE%

then try to run the nmake again. I may be OK this time. :-)

>
> --
> 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
>

-- 
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

Raspunde prin e-mail lui