Error: undefined symbol: _WinMain at 16 When try compile no console
Marcone
marcone at email.com
Fri May 20 15:35:58 UTC 2022
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.
Now work fine! Thank you.
More information about the Digitalmars-d-learn
mailing list