[vtkusers] Re: [Paraview] adding c++ code as a filter to paraview?

Brad King brad.king at kitware.com
Tue Sep 28 17:03:28 EDT 2004


Vidya Raghavan wrote:

> Hi John,
> 
> I could get the pvlocal stuff to work, but when I try to complie the 
> pvlea code in vc++ i get linker errors:
> 
> Linking...
>   Creating library C:\paraview-plugins\PVLEA\Debug/PVLEA.lib and object 
> C:\paraview-plugins\PVLEA\Debug/PVLEA.exp
> vtkLagrangianEulerianAdvection.obj : error LNK2001: unresolved external 
> symbol "__declspec(dllimport) public: static int __cdecl 
> vtkDataSetToImageFilter::IsTypeOf(char const *)" 
> (__imp_?IsTypeOf at vtkDataSetToImageFilter@@SAHPBD at Z)
> 
> Any clue?

Your package must link against any VTK library from which a class is 
used.  If you include a header from VTK/Filtering, then you must link 
against vtkFiltering.  The vtkDataSetToImageFilter is a class from 
vtkFiltering.

-Brad



More information about the ParaView mailing list