Menu

#365 Can't build examples under Qt6/Windows

None
closed
nobody
None
5
2023-05-08
2023-05-08
Anonymous
No

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.

1 Attachments

Discussion

  • Uwe Rathmann

    Uwe Rathmann - 2023-05-08

    For GUI applications it is added automatically and setting it manually is only needed for console applications, right ?

     
  • Uwe Rathmann

    Uwe Rathmann - 2023-05-08

    Fixed in all branches.

     
  • Uwe Rathmann

    Uwe Rathmann - 2023-05-08
    • status: open --> closed
    • Group: -->
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB