digitalmars.D.bugs - [Issue 16063] New: DLL projects seem to ignore DllMain, won't link
- via Digitalmars-d-bugs (22/22) May 22 2016 https://issues.dlang.org/show_bug.cgi?id=16063
https://issues.dlang.org/show_bug.cgi?id=16063 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 puremagic.com Reporter: turkeyman gmail.com I create a DLL project: Properties -> General -> Output Type = DLL, Subsystem = Windows 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 instead. --
May 22 2016