Unable to build Ruby with Visual Studio 2015 RC
I installed the latest Visual Studio, and then tried to build Ruby 2.2.2 on Windows 7. But, I'm having trouble right away. This is an RC candidate (so I guess that's why the CLI shows Visual Studio 14).
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>cl /?
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.22816 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
win32\rtname: conftest.exe is not linked to msvcrt
NMAKE : fatal error U1077: 'win32\rtname' : return code '0x1'
Updated by phasis68 (Heesob Park) over 6 years ago
This issue is due to the runtime name change.
Since the Visual Studio 2014, the runtime is vcruntime140.dll.
The other huddle is FILE structure Encapsulation:
win32/win32.c should be rewritten in order to be built with Visual Studio 2014 or later.
Updated by naruse (Yui NARUSE) almost 6 years ago
- Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: WONTFIX, 2.1: WONTFIX, 2.2: WONTFIX, 2.3: WONTFIX
I also write about this on Microsoft Connect.
You may understand the situation by seeing https://github.com/ruby/ruby/pull/884.
- Ruby 2.3 or prior won't fix this.
- Ruby 2.4 or later may introduce with fundamental architectural change.