Bug 15611 – DMD doesn't build with VS2015

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2016-01-26T06:26:36Z
Last change time
2018-04-10T05:44:59Z
Keywords
C++
Assigned to
No Owner
Creator
Manu

Comments

Comment #0 by turkeyman — 2016-01-26T06:26:36Z
DMD doesn't build with VS2015. This compile error: 1>..\root\longdouble.c(53): error C2065: '_TWO_DIGIT_EXPONENT': undeclared identifier 1>..\root\longdouble.c(53): error C3861: '_set_output_format': identifier not found Solution: Remove longdouble.c(53): _set_output_format(_TWO_DIGIT_EXPONENT); It is no longer needed, and was removed from the library. These link errors: 2>ddmd.obj : error LNK2019: unresolved external symbol __vsnprintf referenced in function "public: void __thiscall OutBuffer::vprintf(char const *,char *)" (?vprintf@OutBuffer@@QAEXPBDPAD@Z) 2>phobos32mscoff.lib(stacktrace_18a3_3e5.obj) : error LNK2019: unresolved external symbol _snprintf referenced in function _D4core3sys7windows10stacktrace10StackTrace13resolveNoSyncFAxmZAAa (char[][] core.sys.windows.stacktrace.StackTrace.resolveNoSync(const(ulong)[])) 2>phobos32mscoff.lib(demangle_a1b_31d.obj) : error LNK2001: unresolved external symbol _snprintf 2>phobos32mscoff.lib(config_20c2_452.obj) : error LNK2001: unresolved external symbol _snprintf 2>phobos32mscoff.lib(config_20c2_452.obj) : error LNK2019: unresolved external symbol _sscanf referenced in function _D2gc6config13__T5parseHTfZ5parseFNbNiAxaKAxaKfZb 2>generated\Debug_Win32\ddmd.exe : fatal error LNK1120: 3 unresolved externals Looks like MS has been messing with the CRT again!
Comment #1 by turkeyman — 2016-01-26T06:32:53Z
Incidentally, why doesn't the build machine test builds with all common compilers? This is *the* standard windows compiler... how is it that this has never been tested?
Comment #2 by turkeyman — 2016-01-26T11:25:09Z
Comment #3 by bugzilla — 2018-04-10T05:44:59Z
(In reply to Manu from comment #2) > https://github.com/D-Programming-Language/dmd/pull/5367 > > This fixes the compile error. And it was pulled!