Undefined symbol argc with Qt 6.10.2
-
I have a Qt Widgets project that I am trying to build in Qt Creator using the LLVM-MinGW 17.0.6 64-bit kit. It builds fine using Qt 6.10.0, but when I build the same project using Qt 6.10.2 I get the following error message:
ld.lld: error: undefined symbol: __declspec(dllimport) __argc
referenced by libQt6EntryPoint.a(qtentrypoint_win.cpp.obj):(.refptr.__imp___argc)Both PCs are running Windows 11.
-
I figured out the problem. When I installed Qt 6.10.2, I selected "Qt/Build Tools/LLVM-MinGW 17.0.6 64-bit" but not "Qt/Qt 6.10.2/LLVM-MinGW 17.0.6 64-bit". So it was trying to link my LLVM-MinGW project with the MinGW version of libQt6EntryPoint.a.
-
I have a Qt Widgets project that I am trying to build in Qt Creator using the LLVM-MinGW 17.0.6 64-bit kit. It builds fine using Qt 6.10.0, but when I build the same project using Qt 6.10.2 I get the following error message:
ld.lld: error: undefined symbol: __declspec(dllimport) __argc
referenced by libQt6EntryPoint.a(qtentrypoint_win.cpp.obj):(.refptr.__imp___argc)Both PCs are running Windows 11.
@richferrara Did you do a clean rebuild after changing Qt version?
Did you try with a small reproducer? -
Sounds like a regression. Please do open a bug report.
-
I figured out the problem. When I installed Qt 6.10.2, I selected "Qt/Build Tools/LLVM-MinGW 17.0.6 64-bit" but not "Qt/Qt 6.10.2/LLVM-MinGW 17.0.6 64-bit". So it was trying to link my LLVM-MinGW project with the MinGW version of libQt6EntryPoint.a.
-
S SGaist has marked this topic as solved