Can't build examples under Qt6/Windows
Brought to you by:
rathmann
All test programs in './examples', './tests' and './playground' fail to link under Qt6.4.3 (most likely also under any 6.x.x Qt version) under Windows with a message like this:
MSVCRT.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function "int __cdecl __s
crt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
fatal error LNK1120: 1 unresolved externals
The reason is, the library 'Qt6EntryPoint' is not linked. The attached patch will fix this issue.
Anonymous
For GUI applications it is added automatically and setting it manually is only needed for console applications, right ?
Fixed in all branches.