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:
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
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
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: