-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
6.6.1
Leads to errors like these:
:-1: error: C:\Qt\6.6.0-static\Src\plugins\networkinformation\libqnetworklistmanager.a(qnetworklistmanagerevents.cpp.obj):qnetworklistmanagerevents.cpp:(.text$_ZN25QNetworkListManagerEvents24checkBehindCaptivePortalEv+0x6a): undefined reference to `__imp_VariantInit' :-1: error: C:\Qt\6.6.0-static\Src\plugins\networkinformation\libqnetworklistmanager.a(qnetworklistmanagerevents.cpp.obj):qnetworklistmanagerevents.cpp:(.text$_ZN25QNetworkListManagerEvents24checkBehindCaptivePortalEv+0x13d): undefined reference to `__imp_VariantClear' :-1: error: C:\Qt\6.6.0-static\Src\plugins\networkinformation\libqnetworklistmanager.a(qnetworklistmanagerevents.cpp.obj):qnetworklistmanagerevents.cpp:(.text$_ZN25QNetworkListManagerEvents24checkBehindCaptivePortalEv+0x1ea): undefined reference to `__imp_VariantClear' :-1: error: C:\Qt\6.6.0-static\Src\plugins\networkinformation\libqnetworklistmanager.a(qnetworklistmanagerevents.cpp.obj):qnetworklistmanagerevents.cpp:(.text$_ZN25QNetworkListManagerEvents24checkBehindCaptivePortalEv+0x261): undefined reference to `__imp_VariantClear'
These symbols are defined in oleaut32.dll, and it is liked to, but MinGW requires libraries in specific order and the library is passed too late in the linker command.
- duplicates
-
QTBUG-114243 Qt 6.5 regression with static cross-compiling for Windows
-
- Closed
-