# Q6.7.0 and VTK 9.3.0 Windows Visual Studio 2022 link errors

**URL:** https://discourse.vtk.org/t/q6-7-0-and-vtk-9-3-0-windows-visual-studio-2022-link-errors/13656
**Category:** Development
**Created:** [April 1, 2024, 1:19am UTC](https://discourse.vtk.org/t/q6-7-0-and-vtk-9-3-0-windows-visual-studio-2022-link-errors/13656 "2024-04-01T01:19:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DominionSoftware](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dominionsoftware/32/1064_2.png) [@DominionSoftware](https://discourse.vtk.org/u/DominionSoftware)
#### Post date: [April 1, 2024, 1:19am UTC](https://discourse.vtk.org/t/q6-7-0-and-vtk-9-3-0-windows-visual-studio-2022-link-errors/13656/1 "2024-04-01T01:19:40Z")

</div>

I’m getting Link errors for almost everything related to Qt, even though Qt seemed to build fine (from git open source, branch 6.7.0…)

I have Qt set to 6 and Qt stuff enabled in the CMake Gui, and it finds all the modules … but fails to link. It’s very strange why would it fail to find anything??

“Y:\vtk930.bin\GUISupport\Qt\GUISupportQt.vcxproj” (default target) (560) →   
(Link target) →   
vtkQtTreeModelAdapter.obj : error LNK2001: unresolved external symbol “\_\_declspec(dllimport) public: \_\_cdecl  
QString::~QString(void)” (\__imp_??1QString@@QEAA@XZ) [Y:\vtk930.bin\GUISupport\Qt\GUISupportQt.vcxproj]  
mocs\_compilation\_RelWithDebInfo.obj : error LNK2001: unresolved external symbol “\_\_declspec(dllimport) public  
: \_\_cdecl QString::~QString(void)” (\__imp_??1QString@@QEAA@XZ) [Y:\vtk930.bin\GUISupport\Qt\GUISupportQt.vcxpro  
j]

---

<div class="post-metadata">

### Author: ![DominionSoftware](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dominionsoftware/32/1064_2.png) [@DominionSoftware](https://discourse.vtk.org/u/DominionSoftware)
#### Post date: [April 1, 2024, 7:19pm UTC](https://discourse.vtk.org/t/q6-7-0-and-vtk-9-3-0-windows-visual-studio-2022-link-errors/13656/2 "2024-04-01T19:19:50Z")

</div>

Meh never mind. I rebuilt qt 663 instead of 670 and now everthing is ok…

Cosmic Rays perhaps.
