[Issue 23256] New: must supply -mscrtlib manually when compiling for Windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 17 04:40:49 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23256

          Issue ID: 23256
           Summary: must supply -mscrtlib manually when compiling for
                    Windows
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at digitalmars.com

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.

--


More information about the Digitalmars-d-bugs mailing list