<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi!<br>Again, I get a linker error building my plugin for paraview, at the point<br>"Linking CXX shared library ..\bin\libDataCalculator.dll"<br><br>it says: <br>"In function 'ZNK17vtkDataCalclulator19NewInstanceInternalEv':<br>.... undefined reference to vtkDataCalculator::FillInputInformation(int,vtkInformation*)"<br><br>My code looks like this:<br>vtkDataCalculator.h:<br><br>#ifndef __vtkDataCalculator_h<br>#define __vtkDataCalculator_h<br><br><br>#include "vtkUnstructuredGridAlgorithm.h"<br><br>class VTK_EXPORT vtkDataCalculator: public vtkUnstructuredGridAlgorithm<br>{ public:<br>&nbsp; static vtkDataCalculator *New();<br><br>&nbsp; vtkTypeRevisionMacro(vtkDataCalculator,vtkUnstructuredGridAlgorithm);<br>&nbsp; void PrintSelf(ostream&amp; os, vtkIndent indent);<br><br>protected:<br>&nbsp;&nbsp;&nbsp; vtkDataCalculator();<br>&nbsp;&nbsp;&nbsp; ~vtkDataCalculator(){};<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; virtual int FillInputPortInformation(int port, vtkInformation* info);<br>&nbsp;&nbsp;&nbsp; virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);<br>};<br>#endif<br><br><br>vtkDataCalculator.cxx:<br><br>#include "vtkDataCalculator.h"<br>#include "vtkDataSet.h"<br>#include "vtkDataArray.h"<br>#include "vtkUnstructuredGrid.h"<br>#include "vtkObjectFactory.h"<br>#include "vtkPointData.h"<br>#include "vtkDoubleArray.h"<br>#include "vtkAlgorithm.h"<br>#include &lt;fstream&gt;<br>#include "vtkSmartPointer.h"<br>#include "vtkInformation.h"<br>#include "vtkInformationVector.h"<br><br>vtkStandardNewMacro(vtkDataCalculator);<br>//----------------------------------------------------------------------------<br>vtkCxxRevisionMacro(vtkDataCalculator,"$Revision$");<br>//----------------------------------------------------------------------------<br>vtkDataCalculator::vtkDataCalculator(){} <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>//----------------------------------------------------------------------------<br>void vtkDataCalculator::PrintSelf(ostream&amp; os, vtkIndent indent)<br>{<br>&nbsp;&nbsp;&nbsp; this-&gt;Superclass::PrintSelf(os,indent);<br>}<br>//----------------------------------------------------------------------------<br>int FillInputPortInformation(int ,vtkInformation* info)<br>{ <br>&nbsp;&nbsp;&nbsp; info -&gt; Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(),"vtkDataSet");<br>&nbsp;&nbsp;&nbsp; info -&gt; Set(vtkAlgorithm::INPUT_IS_REPEATABLE(), 1);<br>&nbsp;&nbsp;&nbsp; return 1;<br>}<br>//----------------------------------------------------------------------------<br>int vtkDataCalculator::RequestData(vtkInformation *vtkNotUsed(request),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; vtkInformationVector **inputVector,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; vtkInformationVector *outputVector)<br>{...<br>}<br><br><br>Is there a macro missing or... ?<br><br>thx for help,<br>Natalie<br><br /><hr />Consíguela aquí <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>¡Hay una nueva versión del Messenger!</a></body>
</html>