<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Well,<br>I added the vtkStandardNewMacro(vtkHorizontalAverage) -thatīs the right parameter, isnīt it?<br>and now I get many compiler errors, like<br><br>'static *vtkHorizontalAverage vtkHorizontalAverage::New()' and 'vtkHorizontalAverage* vtkHorizontalAverage::New()' cannot be overloaded <br><br>- is it now twice defined?<br><br>enother error: <br><br>storage class specified for field "vtkInstantiatorvtkHorizontalAverageNew()"<br><br>and<br><br>vtkObjectFactory was not declared<br>CreateInstance() was not declared in this scope<br><br>what did I get wrong now?<br><br>thx,<br>NH<br><br><br><br>&gt; Date: Thu, 4 Sep 2008 14:13:11 -0400<br>&gt; From: berk.geveci@kitware.com<br>&gt; To: nataliehapp@hotmail.com<br>&gt; Subject: Re: [Paraview] problems linking a new filter<br>&gt; CC: paraview@paraview.org<br>&gt; <br>&gt; vtkStandardNewMacro() includes<br>&gt; vtkInstantiatorvtkHorizontalAverageNew(). You are missing that symbol<br>&gt; because you didn't use the macro.<br>&gt; <br>&gt; -berk<br>&gt; <br>&gt; On Thu, Sep 4, 2008 at 5:27 AM, Natalie Happenhofer<br>&gt; &lt;nataliehapp@hotmail.com&gt; wrote:<br>&gt; &gt; Hello,<br>&gt; &gt; I have written a new filter and put in the method New():<br>&gt; &gt;<br>&gt; &gt; static vtkHorizontalAverage *New() {return new vtkHorizontalAverage;}<br>&gt; &gt;<br>&gt; &gt; it is in the header-file vtkHorizontalAverage.h, HorizontalAverage is the<br>&gt; &gt; new filter.<br>&gt; &gt; As there is already the definition there, there is nothing else concerning<br>&gt; &gt; New() in the corresponding .cxx-file.<br>&gt; &gt;<br>&gt; &gt; Now building paraview with that filter, it compiles fine, but linking I get<br>&gt; &gt; the following error:<br>&gt; &gt;<br>&gt; &gt; Linking CXX Executable ..\..\..\bin\ServerManagerStateLoader.exe:<br>&gt; &gt; ..\bin\libvtkPVFilters.a(vtkPVFiltersInstantiator.obj):vtkPVFiltersInstantiator.cxx:<br>&gt; &gt; undefined reference to 'vtkInstantiatorvtkHorizontalAverageNew() '<br>&gt; &gt;<br>&gt; &gt; What can I do to avoid that? Is there any file I need to include<br>&gt; &gt; additionally, or.. ??<br>&gt; &gt; thx for help,<br>&gt; &gt; NH<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Express yourself instantly with MSN Messenger! MSN Messenger<br>&gt; &gt; _______________________________________________<br>&gt; &gt; ParaView mailing list<br>&gt; &gt; ParaView@paraview.org<br>&gt; &gt; http://www.paraview.org/mailman/listinfo/paraview<br>&gt; &gt;<br>&gt; &gt;<br><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>