<font><font face="verdana,sans-serif">Hi guys,<br><br>I am trying to switch from VTK 5.6.1 to 5.8.0. I use Visual Studio 2010 x64. My project compiles properly when linked against vtk5.6.1, but gives the following error if I try to use vtk5.8.0:<br>

<br><span style="font-family:courier new,monospace">error LNK2019: unresolved external symbol &quot;public: class vtkImageStencilData * __cdecl vtkImageStencilSource::GetOutput(void)&quot; (?GetOutput@vtkImageStencilSource@@QEAAPEAVvtkImageStencilData@@XZ) referenced in function &quot;public: class itk::SmartPointer&lt;class itk::Image&lt;unsigned char,3&gt; &gt; __cdecl Vertebra::getMask(void)&quot; (?getMask@Vertebra@@QEAA?AV?$SmartPointer@V?$Image@E$02@itk@@@itk@@XZ)</span><br>

<br>I changed CMakeLists.txt from:<br><span style="font-family:courier new,monospace">TARGET_LINK_LIBRARIES(myProject vtkVolumeRendering vtkRendering vtkCommon QVTK)</span><br>to:<br><span style="font-family:courier new,monospace">TARGET_LINK_LIBRARIES(</span></font></font><font><font face="verdana,sans-serif"><span style="font-family:courier new,monospace">myProject </span></font></font><font><font face="verdana,sans-serif"><span style="font-family:courier new,monospace">${VTK_LIBRARIES} QVTK)</span><br>

I also tried adding <span style="font-family:courier new,monospace">vtkImaging</span> to the library list, but it makes no difference.<br><br>Do you have a solution for this?<br><br>Regards,<br>Dženan<br></font></font>