[vtkusers] VTK linking errors
David Doria
daviddoria at gmail.com
Mon Jul 2 08:03:35 EDT 2012
On Mon, Jul 2, 2012 at 7:36 AM, Gishara Indeewarie <gish.777 at gmail.com> wrote:
> Dear all,
>
> I am currently upgrading my vtk project from vtk 5.0 to 5.8.
> I am getting linking errors as below:
>
> vtkPBFEAView.obj : error LNK2001: unresolved external symbol "protected:
> virtual void __thiscall
> vtkInteractorStyleTrackballCamera::CollectRevisions(class
> std::basic_ostream<char,struct std::char_traits<char> > &)"
> (?CollectRevisions at vtkInteractorStyleTrackballCamera@@MAEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@@Z)
>
> 1>vtkPBFEAView.obj : error LNK2001: unresolved external symbol "protected:
> virtual void __thiscall
> vtkInteractorStyleRubberBandZoom::CollectRevisions(class
> std::basic_ostream<char,struct std::char_traits<char> > &)"
> (?CollectRevisions at vtkInteractorStyleRubberBandZoom@@MAEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@@Z)
>
> 1>vtkPBFEAView.obj : error LNK2001: unresolved external symbol "protected:
> virtual void __thiscall vtkAbstractTransform::CollectRevisions(class
> std::basic_ostream<char,struct std::char_traits<char> > &)"
> (?CollectRevisions at vtkAbstractTransform@@MAEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@@Z)
>
> Do you have any ideas why this errors happen?
> Thanks a lot.
What are you linking to? You should have a line like:
target_link_libraries(yourProgram ${VTK_LIBRARIES})
in your CMakeLists.txt
David
More information about the vtkusers
mailing list