Re: [Interest] unresolved WinMain on porting to Qt 6

2023-07-03 Thread Jörg Bornemann via Interest
On 6/26/23 08:57, Axel Spoerl via Interest wrote: as you probably guessed already, the error occurs when a project built as a windows application uses |int main(int argc, char** argv)| as an entry point. You can link to QtEntryPoint to fix that, see here: https://doc.qt.io/qt-6/qtentrypoint.htm

Re: [Interest] unresolved WinMain on porting to Qt 6

2023-06-25 Thread Axel Spoerl via Interest
Von: Interest im Auftrag von Hamish Moffatt via Interest Gesendet: Freitag, 23. Juni 2023 07:15 An: interest@qt-project.org Betreff: [Interest] unresolved WinMain on porting to Qt 6 I'm porting my applications to Qt6, from 5.15. Still using qmake. My console applications build an

Re: [Interest] unresolved WinMain on porting to Qt 6

2023-06-25 Thread Hamish Moffatt via Interest
On 23/6/23 22:16, Henry Skoglund wrote: On 2023-06-23 07:15, Hamish Moffatt via Interest wrote: If I add the linker flag /ENTRY:mainCRTStartup then it builds. What's the correct Qt solution for this though? The fact that adding /ENTRY:mainCRTStartup helped implies that you're linking with

Re: [Interest] unresolved WinMain on porting to Qt 6

2023-06-23 Thread Henry Skoglund
On 2023-06-23 07:15, Hamish Moffatt via Interest wrote: I'm porting my applications to Qt6, from 5.15. Still using qmake. My console applications build and run fine, but my widgets applications fail to link with an error (Windows, VS 2022): 1>MSVCRTD.lib(exe_winmain.obj) : error LNK2019: unres

[Interest] unresolved WinMain on porting to Qt 6

2023-06-22 Thread Hamish Moffatt via Interest
I'm porting my applications to Qt6, from 5.15. Still using qmake. My console applications build and run fine, but my widgets applications fail to link with an error (Windows, VS 2022): 1>MSVCRTD.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function "in