digitalmars.D.bugs - [Issue 20456] New: linker can't find the C function wmemove when
- d-bugmail puremagic.com (39/39) Dec 18 2019 https://issues.dlang.org/show_bug.cgi?id=20456
https://issues.dlang.org/show_bug.cgi?id=20456 Issue ID: 20456 Summary: linker can't find the C function wmemove when -mscrtlib=msvcrt Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: sahmi.soulaimane gmail.com The following program fails to link. ``` import core.stdc.wchar_; int main() { wchar_t[10] a = void; wchar_t[10] b = void; wmemmove(a.ptr, b.ptr, 10); return 0; } ``` compiled with: dmd test.d -m64 -mscrtlib=msvcrt The equivalent C program succeds. ``` #include <wchar.h> int main() { wchar_t a[10]; wchar_t b[10]; wmemmove(a,b,10); return 0; } ``` compiled with: cl test.c /MD --
Dec 18 2019