MSVCRT.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain

This happens:
MSVCRT.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function “int cdecl scrt_common_main_seh(void)” (?__scrt_common_main_seh@@YAHXZ)

when building Client/Server targets in debug mode. Any ideas ? Code from latest master branch. Found only single WinMain entry, and that file haven’t been modified for like 5 months.

I have the same problem when packaging for 4.16.2. Editor build works but when trying to package, I get these errors. Anyone figures it out?

Ancient question by now but on 5.3 I had the same issue. Resolved it by removing the LaunchModuleName parameter in my Target.cs file.