From: ruby talk Date: 2006-01-22T04:59:55+09:00 Subject: Re: Extending ruby with c ------=_Part_15997_17231897.1137873581464 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Did that, I got an error for the dir having a space in the ie : f:\document= s and settings, so i copied the code folder to my c drive root ( c:\rcode) and now i get the error cl -nologo -LD -FeTest.so TcTest.obj Test.obj msvcrt-ruby18.lib oldname s.lib user32.lib advapi32.lib wsock32.lib -link -incremental:no -debug -opt:ref -opt:icf -dll -libpath:"c:/ruby/lib" -def:Test-i386-mswin32.def cl : Command line warning D4024 : unrecognized source file type '.', object file assumed LINK : fatal error LNK1104: cannot open file '.' NMAKE : fatal error U1077: 'F:\WINDOWS\system32\cmd.exe' : return code '0x2= ' Stop. Becker On 1/21/06, Anatol Pomozov wrote: > > 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 > now > > 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 cod= e > > '0x2' > > > Stop. > > > > > > C:\ruby\code> > > > > > > Becker > > > > -- > anatol (http://pomozov.info) > > ------=_Part_15997_17231897.1137873581464--