Error: undefined symbol: _WinMain at 16 When try compile no console
Adam D Ruppe
destructionator at gmail.com
Thu May 19 19:35:20 UTC 2022
On Thursday, 19 May 2022 at 19:29:25 UTC, Marcone wrote:
> Using -L/SUBSYSTEM:windows user32.lib
you using a main() function right?
Please note when compiling on Win64, you need to explicitly list
-Lgdi32.lib -Luser32.lib on the build command. If you want the
Windows subsystem too, use -L/subsystem:windows
-L/entry:mainCRTStartup.
If using ldc instead of dmd, use -L/entry:wmainCRTStartup instead
of mainCRTStartup; note the "w".
see some deets i wrote here
http://arsd-official.dpldocs.info/arsd.simpledisplay.html#installation-instructions
More information about the Digitalmars-d-learn
mailing list