[Issue 20456] New: linker can't find the C function wmemove when -mscrtlib=msvcrt
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 19 03:08:50 UTC 2019
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 at puremagic.com
Reporter: sahmi.soulaimane at 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
--
More information about the Digitalmars-d-bugs
mailing list