[vtkusers] compile-time error when inheriting from vtkImageMultipleInputFilter

Brad King brad.king at kitware.com
Mon May 30 16:20:14 EDT 2005


Jan Owoc wrote:
> void ThreadedExecute(vtkImageData **inDatas, vtkImageData *outData,
> int extent[6], int threadId)
> {
[snip]
> }
> 
> It generates the ".o" files, but when it is linking, I get the following error:
> vtkImageAverageFilter.o(.gnu.linkonce.r._ZTV21vtkImageAverageFilter+0x154):
> undefined reference to
> `vtkImageAverageFilter::ThreadedExecute(vtkImageData**, vtkImageData*,
> int*, int)'
> collect2: ld returned 1 exit status

You're missing vtkImageAverageFilter:: before your ThreadedExecute 
implementation.

-Brad



More information about the vtkusers mailing list