On Friday, 20 May 2022 at 13:16:00 UTC, frame wrote:
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Did you try 2.099 too? Because the default build mode for 32bit
was changed to MS-COFF and it smells a litte bit that you have
used OMF before. MS-COFF format inserts the reference to the
C-runtime library automatically.
Try the -m32omf switch.
I tried compiling now on x64 without console using
-L/SUBSYSTEM:windows user32.lib -L/entry:mainCRTStartup -m64 and
it doesn't work. It compiles, but the program does not run
afterwards. I also tried to add -m32omf But in this case the
compilation error. How to solve this?