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

Dženan Zukić dzenanz at gmail.com
Tue Jan 24 07:24:41 EST 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120124/e521c803/attachment.htm>


More information about the vtkusers mailing list