How use -L/SUBSYSTEM:windows for hide console in x64 prograns? Becouse if I use -L/SUBSYSTEM:windows and -m64 I get this error:

lld-link: error: undefined symbol: WinMain
referenced by msvcrt120.lib(msvcrt_stub2.obj):($LN5)
Error: linker exited with status 1

If I delete -L/SUBSYSTEM:windows compile fine.


How can I hide console using -m64?

Reply via email to