<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>> Date: Thu, 4 Sep 2008 14:13:11 -0400<br>> From: berk.geveci@kitware.com<br>> To: nataliehapp@hotmail.com<br>> Subject: Re: [Paraview] problems linking a new filter<br>> CC: paraview@paraview.org<br>> <br>> vtkStandardNewMacro() includes<br>> vtkInstantiatorvtkHorizontalAverageNew(). You are missing that symbol<br>> because you didn't use the macro.<br>> <br>> -berk<br>> <br>> On Thu, Sep 4, 2008 at 5:27 AM, Natalie Happenhofer<br>> <nataliehapp@hotmail.com> wrote:<br>> > Hello,<br>> > I have written a new filter and put in the method New():<br>> ><br>> > static vtkHorizontalAverage *New() {return new vtkHorizontalAverage;}<br>> ><br>> > it is in the header-file vtkHorizontalAverage.h, HorizontalAverage is the<br>> > new filter.<br>> > As there is already the definition there, there is nothing else concerning<br>> > New() in the corresponding .cxx-file.<br>> ><br>> > Now building paraview with that filter, it compiles fine, but linking I get<br>> > the following error:<br>> ><br>> > Linking CXX Executable ..\..\..\bin\ServerManagerStateLoader.exe:<br>> > ..\bin\libvtkPVFilters.a(vtkPVFiltersInstantiator.obj):vtkPVFiltersInstantiator.cxx:<br>> > undefined reference to 'vtkInstantiatorvtkHorizontalAverageNew() '<br>> ><br>> > What can I do to avoid that? Is there any file I need to include<br>> > additionally, or.. ??<br>> > thx for help,<br>> > NH<br>> ><br>> > ________________________________<br>> > Express yourself instantly with MSN Messenger! MSN Messenger<br>> > _______________________________________________<br>> > ParaView mailing list<br>> > ParaView@paraview.org<br>> > http://www.paraview.org/mailman/listinfo/paraview<br>> ><br>> ><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>