From: David Craine Date: 2005-01-20T13:57:41+09:00 Subject: Building ruby 1.8.2 with static extensions on Windows XP ------=_NextPart_000_02BC_01C4FE82.A6AEE5A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have been trying to build ruby 1.8.2 on Windows XP and attempting to get the extensions linked statically. I've commented in the extension names listed in the Setup file in the ext dir; however, when the nmake process gets to the point of creating the ruby.exe and rubyw.exe files it spits out a fatal error as follows: making ruby.exe, rubyw.exe Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. rc -I. -I. -I../ruby-1.8.2/win32 -r -fomsvcrt-ruby18.res msvcrt-ruby18.rc cl -nologo -LD main.obj msvcrt-ruby18-static.lib msvcrt-ruby18.res oldnames.lib user32.lib advapi32.lib wsock32.lib advapi32.lib kernel32.lib wsock32.lib user32.lib uuid.lib oleaut32.lib ole32.lib -Femsvcrt-ruby18.dll -link -incremental:no -debug -opt:ref -opt:icf -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -o pt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -link -incremental:no -debug -opt:ref -opt:icf -dll -def: -def:msvcrt-ruby18.def LINK : warning LNK4044: unrecognized option '/link'; ignored LINK : fatal error LNK1146: no argument specified with option '/def:' NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. NMAKE : fatal error U1077: '.\miniruby.exe' : return code '0x2' Stop. The 'cl' line looks like something got mis-generated in the make file. I've been successful in building the dynamically linked version of ruby, just not the static one. My ultimate goal is to embed ruby into my own executable and to statically link in the extensions there; but I wanted to see how ruby did it first. Any ideas on what this problem may be? Dave Craine ------=_NextPart_000_02BC_01C4FE82.A6AEE5A0--