[vtkusers] Going from v5.6.1 to v5.8.0 gives linking error

David Doria daviddoria at gmail.com
Tue Jan 24 07:50:33 EST 2012


2012/1/24 Dženan Zukić <dzenanz at gmail.com>:
> Hi guys,
>
> 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:
>
> error LNK2019: unresolved external symbol "public: class vtkImageStencilData
> * __cdecl vtkImageStencilSource::GetOutput(void)"
> (?GetOutput at vtkImageStencilSource@@QEAAPEAVvtkImageStencilData@@XZ)
> referenced in function "public: class itk::SmartPointer<class
> itk::Image<unsigned char,3> > __cdecl Vertebra::getMask(void)"
> (?getMask at Vertebra@@QEAA?AV?$SmartPointer at V?$Image at E$02 at itk@@@itk@@XZ)
>
> I changed CMakeLists.txt from:
> TARGET_LINK_LIBRARIES(myProject vtkVolumeRendering vtkRendering vtkCommon
> QVTK)
> to:
> TARGET_LINK_LIBRARIES(myProject ${VTK_LIBRARIES} QVTK)
> I also tried adding vtkImaging to the library list, but it makes no
> difference.
>
> Do you have a solution for this?
>
> Regards,
> Dženan

Can you post an example to the WishList
(http://www.vtk.org/Wiki/VTK/Examples/Cxx#Wish_List) ? I'll take a
look and see if I can reproduce.

David



More information about the vtkusers mailing list