Building Win32 application via dub
Ahmet Sait
nightmarex1337 at hotmail.com
Wed Apr 29 10:19:39 UTC 2020
> Though the program built with dub is now crashing at runtime
> when calling `writeln` within the `WinMain` block.
Back then when I was trying to use writeln (or any standard
output function like printf)in a non-console app in Windows it
used to crash, I don't know exact reason behind it but you might
want to use AllocConsole to workaround it.
If the same code works fine with -m32 but not -m32mscoff (or
-m64) then I have no idea.
More information about the Digitalmars-d-learn
mailing list