[Issue 15646] New: Unresolved symbols when using m32mscoff with Windows subsystem

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Feb 4 20:06:14 PST 2016


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

          Issue ID: 15646
           Summary: Unresolved symbols when using m32mscoff with Windows
                    subsystem
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: erikas.aubade at gmail.com

The example windows application given at http://wiki.dlang.org/D_for_Win32
works fine when compiled with the default OMF runtime, but when compiled with
-m32mscoff it gives the following error

wintest.obj : error LNK2019: unresolved external symbol _MessageBoxA at 16
referenc
ed in function _WinMain at 16
wintest.exe : fatal error LNK1120: 1 unresolved externals
--- errorlevel 1120

It also seems to explicitly require a WinMain function--giving a similar
unresolved external symbol error--whereas with the OMF runtime, it seems to
function fine with void main() {}

--


More information about the Digitalmars-d-bugs mailing list