Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #7346
| Newsgroups | comp.lang.ruby |
|---|---|
| Date | 2017-04-09 06:46 -0700 |
| Message-ID | <f637d052-ad83-4ba5-b2c2-c44371b3cfb7@googlegroups.com> (permalink) |
| Subject | error ruby.h(106): error C2118: negative subscript when compile ruby 2.4.1 on Windows |
| From | Hellio6 <vunangluc@gmail.com> |
I try to compile ruby 2.4.1 on ruby. after configure I run nmake but getting this error.
>nmake
Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.
CC = cl -nologo
LD = cl -nologo
LDSHARED = cl -nologo -LD
CFLAGS = -MD -Zi -W2 -wd4100 -wd4127 -wd4210 -wd4214 -wd4255 -wd4574 -wd4668 -wd4710 -wd4711 -wd4820 -wd4996 -we4028 -we4142 -O2sy- -Zm600
XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/x64-mswin64_140 -I./include -I. -I./enc/unicode/9.0.0
CPPFLAGS = -D_WIN32_WINNT=0x0600
DLDFLAGS = -incremental:no -debug -opt:ref -opt:icf -dll
SOLIBS =
compiling main.c
main.c
d:\ruby\ruby-2.4.1\ruby-2.4.1\include\ruby/ruby.h(106): error C2118: negative subscript
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
I look at ruby.h (106) and see this:
typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1];
How can we fix this? Any of you successfully compile ruby 2.4.1 on Windows?
Back to comp.lang.ruby | Previous | Next | Find similar
error ruby.h(106): error C2118: negative subscript when compile ruby 2.4.1 on Windows Hellio6 <vunangluc@gmail.com> - 2017-04-09 06:46 -0700
csiph-web