[Paraview] problems linking a new filter

Berk Geveci berk.geveci at kitware.com
Thu Sep 4 14:13:11 EDT 2008


vtkStandardNewMacro() includes
vtkInstantiatorvtkHorizontalAverageNew(). You are missing that symbol
because you didn't use the macro.

-berk

On Thu, Sep 4, 2008 at 5:27 AM, Natalie Happenhofer
<nataliehapp at hotmail.com> wrote:
> Hello,
> I have written a new filter and put in the method New():
>
> static vtkHorizontalAverage *New() {return new vtkHorizontalAverage;}
>
> it is in the header-file vtkHorizontalAverage.h, HorizontalAverage is the
> new filter.
> As there is already the definition there, there is nothing else concerning
> New() in the corresponding .cxx-file.
>
> Now building paraview with that filter, it compiles fine, but linking I get
> the following error:
>
> Linking CXX Executable ..\..\..\bin\ServerManagerStateLoader.exe:
> ..\bin\libvtkPVFilters.a(vtkPVFiltersInstantiator.obj):vtkPVFiltersInstantiator.cxx:
> undefined reference to 'vtkInstantiatorvtkHorizontalAverageNew() '
>
> What can I do to avoid that? Is there any file I need to include
> additionally, or.. ??
> thx for help,
> NH
>
> ________________________________
> Express yourself instantly with MSN Messenger! MSN Messenger
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list