From: davispuh@... Date: 2017-09-20T18:21:25+00:00 Subject: [ruby-core:82901] [Ruby trunk Bug#12644] Support debug build on Windows with MSVC Issue #12644 has been updated by davispuh (D��vis Mos��ns). Most likely your ucrtbased.dll differs in such way that can't locate that structure, so either need to update implementation to work for it (you'll need to look at disassembly) or you will need to compile with probably older version of MSVC 2015 which worked. ---------------------------------------- Bug #12644: Support debug build on Windows with MSVC https://bugs.ruby-lang.org/issues/12644#change-66799 * Author: davispuh (D��vis Mos��ns) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.0dev (2016-08-01 trunk 55789) [x64-mingw32] * Backport: 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED ---------------------------------------- When building debug build with MSVC (`-MDd` flag) then it will be linked to `ucrtbased.dll` where `_isatty` function obviously differs. I've attached a patch which fixes this so that `__pioinfo` will be found for both debug and non-debug builds (x86 and x64) Anyway I really really don't like this and I think Ruby should keep it's own fd <=> handle mapping and not use this hack, but for now this works until `_isatty` changes. ---Files-------------------------------- 0001-Support-debug-build-on-Windows-with-MSVC.patch (4.04 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: