[Issue 16063] New: DLL projects seem to ignore DllMain, won't link

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun May 22 20:03:08 PDT 2016


          Issue ID: 16063
           Summary: DLL projects seem to ignore DllMain, won't link
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: visuald
          Assignee: nobody at puremagic.com
          Reporter: turkeyman at gmail.com

I create a DLL project: Properties -> General -> Output Type = DLL, Subsystem =

I get the error when linking:
  error LNK2019: unresolved external symbol WinMain referenced in function "int
__cdecl invoke_main(void)" (?invoke_main@@YAHXZ)

Seems to want WinMain, even though it's a DLL.
If I change 'Subsystem' to 'Not Set', it complains that main() is missing


More information about the Digitalmars-d-bugs mailing list