[Paraview] problems linking my plugin
Natalie Happenhofer
nataliehapp at hotmail.com
Thu Dec 4 08:47:30 EST 2008
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
_________________________________________________________________
Chatea mientras compartes los mejores videos. Descubre Messenger TV.
http://messengertv.msn.com/mkt/es-xl/default.htm?appID=20581609
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081204/d7425a61/attachment-0001.htm>
More information about the ParaView
mailing list