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: nob...@puremagic.com Reporter: turkey...@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. --