D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20456 - linker can't find the C function wmemove when -mscrtlib=msvcrt
Summary: linker can't find the C function wmemove when -mscrtlib=msvcrt
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Windows
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-19 03:08 UTC by Suleyman Sahmi (سليمان السهمي)
Modified: 2024-12-13 19:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Suleyman Sahmi (سليمان السهمي) 2019-12-19 03:08:50 UTC
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
Comment 1 dlangBugzillaToGithub 2024-12-13 19:06:31 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19650

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB