You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: Other type of bug report
about: Let us know about an issues that does not fit into any of the other issues.
types
title: 'link error'
labels: 'qt5-base:x64-windows-static'
assignees: ''
Describe the bug
When creating a Qt Widgets Application project, the linker cannot automatically import qtmain.lib or qtmaind.lib. They need to be manually added, otherwise an error will be reported.
Environment
OS: [Windows 10 x64]
Compiler: visual studio 2022 17.13.5
Qt Visual Studio Tools Version:3.3.1.1
vcpkg package management program version 2025-03-22-d4dd14112c2026ee57e59f966ecfa3b9137bd143
To Reproduce
Steps to reproduce the behavior:
./vcpkg install qt5-base:x64-windows-static
Open VS2022
3.Create QT project: Qt Widgets Application,Base calss:QMainWindow.
name: Other type of bug report
about: Let us know about an issues that does not fit into any of the other issues.
types
title: 'link error'
labels: 'qt5-base:x64-windows-static'
assignees: ''
Describe the bug
When creating a Qt Widgets Application project, the linker cannot automatically import qtmain.lib or qtmaind.lib. They need to be manually added, otherwise an error will be reported.
Environment
Qt Visual Studio Tools Version:3.3.1.1
vcpkg package management program version 2025-03-22-d4dd14112c2026ee57e59f966ecfa3b9137bd143
To Reproduce
Steps to reproduce the behavior:
3.Create QT project: Qt Widgets Application,Base calss:QMainWindow.
When compiling a project
Expected behavior
Compile and generate a static library version of the Qt window program.
Failure logs
1>Reading Qt configuration (D:/vcpkg/buildtrees/qt5-base/x64-windows-static-dbg/bin/qmake)
1> Qt: 5.15.16
1>uic QtWidgetsApplication6.ui
1>rcc QtWidgetsApplication6.qrc
1>moc QtWidgetsApplication6.h
1> RCC: Warning: No resources in 'D:\Source\VS\QtWidgetsApplication6\QtWidgetsApplication6.qrc'.
1>QtWidgetsApplication6.cpp
1>main.cpp
1>qrc_QtWidgetsApplication6.cpp
1>moc_QtWidgetsApplication6.cpp
1>qtvars_plugin_import.cpp
1>Qt5AxServerd.lib(qaxserver.obj) : error LNK2019: unresolved external symbol "class QAxFactory * __cdecl qax_instantiate(void)" (?qax_instantiate@@YAPEAVQAxFactory@@xz) referenced in function "class QAxFactory * __cdecl qAxFactory(void)" (?qAxFactory@@YAPEAVQAxFactory@@xz)
1>D:\Source\VS\QtWidgetsApplication6\x64\Debug\QtWidgetsApplication6.exe : fatal error LNK1120: 1 unresolved externals
1>Done building project "QtWidgetsApplication6.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
========== Rebuild completed at 0:06 and took 05.348 seconds ==========
The text was updated successfully, but these errors were encountered: