Bug 23256 – must supply -mscrtlib manually when compiling for Windows
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2022-07-17T04:40:49Z
Last change time
2022-07-20T09:14:18Z
Keywords
pull
Assigned to
No Owner
Creator
Walter Bright
Comments
Comment #0 by bugzilla — 2022-07-17T04:40:49Z
When compiling a file:
void func() { }
on a non-Windows system, and cross compiling it to Windows with:
dmd -c test.d -os=windows
it fails with the message:
Error: must supply `-mscrtlib` manually when cross compiling to windows
But mscrtlib is only necessary when trying to link a windows object file, not just create it.
Comment #1 by dlang-bot — 2022-07-17T05:05:27Z
@WalterBright created dlang/dmd pull request #14312 "fix Issue 23256 - must supply -mscrtlib manually when compiling for W…" fixing this issue:
- fix Issue 23256 - must supply -mscrtlib manually when compiling for Windows
https://github.com/dlang/dmd/pull/14312
Comment #2 by dlang-bot — 2022-07-20T09:14:18Z
dlang/dmd pull request #14312 "fix Issue 23256 - must supply -mscrtlib manually when compiling for W…" was merged into master:
- 49d5b113b9be12879fcb3b5ba9ebd3cf8cab1ce7 by Walter Bright:
fix Issue 23256 - must supply -mscrtlib manually when compiling for Windows
https://github.com/dlang/dmd/pull/14312