From: Anatol Pomozov Date: 2006-01-22T04:26:03+09:00 Subject: Re: Extending ruby with c ------=_Part_5889_20126131.1137871549144 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline See file "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat" that .bat file registres all EVN variables needed for ms compiler. You need to add those PATH, INCLUDE, LIB add to user env variables. On 1/21/06, Joe Van Dyk wrote: > > On 1/21/06, ruby talk wrote: > > Good news: > > I got CL to work! i donlowaded Visual C++ Toolkit 2003 for free and no= w > cl > > works. > > > > Bad news: > > now i get a differnt error. > > > > C:\ruby\code>nmake > > > > Microsoft (R) Program Maintenance Utility Version 1.50 > > Copyright (c) Microsoft Corp 1988-94. All rights reserved. > > > > cl -nologo -MD -Zi -O2b2xg- -G6 -I. > > -Ic:/ruby/lib/ruby/1.8/i386-mswin32 > > -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -IC:/ruby/code -I. -I./.. > > -I./../missing -c > > -TcTest.c > > Test.c > > c:\ruby\lib\ruby\1.8\i386-mswin32\win32\win32.h(25) : fatal error C1083= : > > Cannot > > open include file: 'windows.h': No such file or directory > > You need to tell the compiler about the directory that includes the > header file windows.h. You can probably do this via giving the > compiler line the following: -I/, where is the directory > that contains windows.h. > > > NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code > '0x2' > > Stop. > > > > C:\ruby\code> > > > > Becker > -- anatol (http://pomozov.info) ------=_Part_5889_20126131.1137871549144--