Nobuyoshi Nakada
1/16/2007 5:01:00 PM
Hi,
At Tue, 16 Jan 2007 05:40:33 +0900,
Sam Smoot wrote in [ruby-talk:234174]:
> I'm having trouble generating config.h on one of my machines, and I
> don't remember the exact steps I've used in the past. I install with
> the One-Click Installer, open up a MSVC (Express Edition)
> command-prompt, and goto the following directory:
>
> c:\ruby\src\ruby-1.8.5\win32
Or you can make a new directory and run configure.bat there.
c:\ruby\src\ruby-1.8.5> mkdir i386-mswin32
c:\ruby\src\ruby-1.8.5> chdir i386-mswin32
c:\ruby\src\ruby-1.8.5\i386-mswin32> ..\win32\configure.bat
> Then I run configure.bat, which says that "cl" returned a U1077,
> without any detail on line-number, file, or any other specifics.
U1077 should be an error from nmake.exe.
> Are there are include directories I need to add to my %PATH%
> environment variable or anything? I don't need to build Ruby, just
> generate the config.h for c-extensions.
%INCLUDE% and %LIB% will be set by a batch file installed with
VC. But the config.h generated by MSVC8 cannot be used with
One-Click Installer which is compiled with MSVC6.
--
Nobu Nakada