Error: undefined symbol: _WinMain at 16 When try compile no console

frame frame86 at live.com
Fri May 20 13:16:00 UTC 2022


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.




More information about the Digitalmars-d-learn mailing list