On Sunday, 3 November 2019 at 07:06:12 UTC, Mike Parker wrote:
Here's an example, winhello.d, that should work with all of the following command lines:
Sorry, here's the example: == winhello.d /+ dub.sdl: name "entry"dflags "-L/SUBSYSTEM:WINDOWS" "-L/ENTRY:mainCRTStartup" platform="windows-dmd"
+/ import core.sys.windows.windows; pragma(lib, "user32"); void main() { MessageBoxA(null, "Hello", "Hello", MB_OK); }