Building Win32 application via dub
Sam E.
sam.e at example.org
Wed Apr 29 10:27:35 UTC 2020
On Wednesday, 29 April 2020 at 10:19:39 UTC, Ahmet Sait wrote:
>> 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.
To be honest, I haven't yet found the way to switch between -m32
and -m64 (or other) via dub :)
More information about the Digitalmars-d-learn
mailing list