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:

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

2023-06-26 Thread Axel Spoerl via Interest
Hi Hamish, 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.html Cheers Axel

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

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: