From: "nobu (Nobuyoshi Nakada) via ruby-core" Date: 2024-07-30T14:39:07+00:00 Subject: [ruby-core:118746] [Ruby master Feature#20563] Drop support for old Windows Issue #20563 has been updated by nobu (Nobuyoshi Nakada). It seems that the import library in VisualStudio 2015 is missing the symbol that was introduced in Windows Server 2016. ``` win32.obj : error LNK2019: unresolved external symbol __imp_SetThreadDescription referenced in function rb_w32_set_thread_description miniruby.exe : fatal error LNK1120: 1 unresolved externals ``` ---------------------------------------- Feature #20563: Drop support for old Windows https://bugs.ruby-lang.org/issues/20563#change-109287 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Assignee: usa (Usaku NAKAMURA) ---------------------------------------- This is the table of APIs that we are calling dynamically, and the available Windows versions. DLL | API | Client | Server | ---------|--------------------------------|--------|--------| kernel32 | CreateSymbolicLinkW | Vista | 2008 | kernel32 | GetFileInformationByHandleEx | Vista | 2008 | kernel32 | GetFinalPathNameByHandleW | Vista | 2008 | kernel32 | SetFileInformationByHandle | Vista | 2008 | shell32 | SHGetPathFromIDListEx | Vista | 2008 | ws2_32 | inet_ntop | Vista | 2008 | ws2_32 | inet_pton | Vista | 2008 | kernel32 | GetSystemTimePreciseAsFileTime | 8 | 2012 | kernel32 | SetThreadDescription | 10 | 2016 | However, already random.c directly uses `BCryptGenRandom` that is available since Windows Vista/Server 2008. So I propose explicitly dropping support for Windows older than Vista/2008. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/