From: rocifier@... Date: 2017-09-15T11:57:49+00:00 Subject: [ruby-core:82811] [Ruby trunk Bug#13903] cant compile ruby on windows Issue #13903 has been reported by rocifier (Ryan O'Connor). ---------------------------------------- Bug #13903: cant compile ruby on windows https://bugs.ruby-lang.org/issues/13903 * Author: rocifier (Ryan O'Connor) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- steps: 1. open VS2015 x86 Native Tools Command Prompt 2. follow instructions in https://github.com/ruby/ruby/blob/trunk/win32/README.win32 most of the compilation completes including producing .lib files, but nmake finally errors out at this stage and the whole process doesn't complete: ``` compiling c:/Repositories/ruby/ext/bigdecimal/bigdecimal.c bigdecimal.c linking shared-object bigdecimal.so Creating library bigdecimal-i386-mswin32_140.lib and object bigdecimal-i386-mswin32_140.exp bigdecimal.obj : error LNK2001: unresolved external symbol _rb_cNumeric bigdecimal.obj : error LNK2001: unresolved external symbol _rb_eArgError bigdecimal.obj : error LNK2001: unresolved external symbol _rb_eTypeError bigdecimal.obj : error LNK2001: unresolved external symbol _rb_eZeroDivError bigdecimal.obj : error LNK2001: unresolved external symbol _rb_eFloatDomainError bigdecimal.obj : error LNK2001: unresolved external symbol _rb_eMathDomainError ../../.ext/i386-mswin32_140/bigdecimal.so : fatal error LNK1120: 6 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' ``` -- https://bugs.ruby-lang.org/ Unsubscribe: