[Paraview] problems linking my plugin
David E DeMarle
dave.demarle at kitware.com
Thu Dec 4 08:49:20 EST 2008
int FillInputPortInformation(int ,vtkInformation* info)
should be
int vtkDataCalculator::FillInputPortInformation(int ,vtkInformation* info)
On Thu, Dec 4, 2008 at 8:47 AM, Natalie Happenhofer
<nataliehapp at hotmail.com> wrote:
> Hi!
> Again, I get a linker error building my plugin for paraview, at the point
> "Linking CXX shared library ..\bin\libDataCalculator.dll"
>
> it says:
> "In function 'ZNK17vtkDataCalclulator19NewInstanceInternalEv':
> .... undefined reference to
> vtkDataCalculator::FillInputInformation(int,vtkInformation*)"
>
> My code looks like this:
> vtkDataCalculator.h:
>
> #ifndef __vtkDataCalculator_h
> #define __vtkDataCalculator_h
>
>
> #include "vtkUnstructuredGridAlgorithm.h"
>
> class VTK_EXPORT vtkDataCalculator: public vtkUnstructuredGridAlgorithm
> { public:
> static vtkDataCalculator *New();
>
> vtkTypeRevisionMacro(vtkDataCalculator,vtkUnstructuredGridAlgorithm);
> void PrintSelf(ostream& os, vtkIndent indent);
>
> protected:
> vtkDataCalculator();
> ~vtkDataCalculator(){};
>
> virtual int FillInputPortInformation(int port, vtkInformation* info);
> virtual int RequestData(vtkInformation *, vtkInformationVector **,
> vtkInformationVector *);
> };
> #endif
>
>
> vtkDataCalculator.cxx:
>
> #include "vtkDataCalculator.h"
> #include "vtkDataSet.h"
> #include "vtkDataArray.h"
> #include "vtkUnstructuredGrid.h"
> #include "vtkObjectFactory.h"
> #include "vtkPointData.h"
> #include "vtkDoubleArray.h"
> #include "vtkAlgorithm.h"
> #include <fstream>
> #include "vtkSmartPointer.h"
> #include "vtkInformation.h"
> #include "vtkInformationVector.h"
>
> vtkStandardNewMacro(vtkDataCalculator);
> //----------------------------------------------------------------------------
> vtkCxxRevisionMacro(vtkDataCalculator,"$Revision$");
> //----------------------------------------------------------------------------
> vtkDataCalculator::vtkDataCalculator(){}
> }
> //----------------------------------------------------------------------------
> void vtkDataCalculator::PrintSelf(ostream& os, vtkIndent indent)
> {
> this->Superclass::PrintSelf(os,indent);
> }
> //----------------------------------------------------------------------------
> int FillInputPortInformation(int ,vtkInformation* info)
> {
> info -> Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(),"vtkDataSet");
> info -> Set(vtkAlgorithm::INPUT_IS_REPEATABLE(), 1);
> return 1;
> }
> //----------------------------------------------------------------------------
> int vtkDataCalculator::RequestData(vtkInformation *vtkNotUsed(request),
> vtkInformationVector **inputVector,
> vtkInformationVector *outputVector)
> {...
> }
>
>
> Is there a macro missing or... ?
>
> thx for help,
> Natalie
>
> ________________________________
> Consíguela aquí ¡Hay una nueva versión del Messenger!
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>
--
David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
More information about the ParaView
mailing list