[vtkusers] Linking error - which vtk libs must be linked?

Martin Baumann mailsgetlost at web.de
Wed Feb 1 16:24:51 EST 2006


Hi,

from where do I know which vtk-libraries I have to add when linking my 
project?

Gcc compiles my program without any error.
But there are the following linker errors:

/home/martin/myProg/Obj/hvs_pathline_actor.o(.text+0x5ca): In function 
`HvsPathlineActor::apply_plane_normal()':
/home/martin/myProg/hvs_pathline_actor.cc:281: undefined reference to 
`vtkPlaneWidget::SetNormal(double, double, double)'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x1d7d): In function 
`HvsPipeline::reinit_plane_widget()':
/home/martin/myProg/hvs_pipeline.cc:335: undefined reference to 
`vtkPlaneWidget::New()'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x1dee):/home/martin/myProg/hvs_pipeline.cc:425: 
undefined reference to `vtkPlaneWidget::SetResolution(int)'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x1ead): In function 
`HvsPipeline::reinit_line_widget()':
/home/martin/myProg/hvs_pipeline.cc:312: undefined reference to 
`vtkLineWidget::New()'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x38ec): In function 
`plane_widget_callback_function(vtkObject*, unsigned long, void*, void*)':
/home/martin/myProg/hvs_pipeline.cc:87: undefined reference to 
`vtkPlaneWidget::GetPolyData(vtkPolyData*)'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x3a9c): In function 
`line_widget_callback_function(vtkObject*, unsigned long, void*, void*)':
/home/martin/myProg/hvs_pipeline.cc:72: undefined reference to 
`vtkLineWidget::GetPolyData(vtkPolyData*)'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x1887): In function 
`HvsPipeline::set_plane_widget_resolution(int)':
/home/martin/myProg/hvs_pipeline.cc:425: undefined reference to 
`vtkPlaneWidget::SetResolution(int)'
/home/martin/myProg/Obj/hvs_streamline_actor.o(.text+0x943): In function 
`HvsStreamlineActor::apply_plane_normal()':
/home/martin/myProg/hvs_streamline_actor.cc:210: undefined reference to 
`vtkPlaneWidget::SetNormal(double, double, double)'

I guess that vtk-libs are missing. I searched the VTK web site, but I 
couldn't find an answer.

Thanks, MB



More information about the vtkusers mailing list