[vtkusers] Trying to create a Filter - but how?

Gessat, Michael gessat at ira.uka.de
Thu Feb 5 09:43:00 EST 2004


Hi!

Thanks for that, all the C4273-warnings are gone now. 

But all the LNK-2001-errors are still there:

ImageReflection.obj : error LNK2001: Unresolved external symbol  "public:
void __thiscall vtkImageProgressIterator<double>::NextSpan(void)"
(?NextSpan@?$vtkImageProgressIterator at N@@QAEXXZ)
ImageReflection.obj : error LNK2001: Unresolved external symbol  "public:
void __thiscall vtkImageIterator<double>::NextSpan(void)"
(?NextSpan@?$vtkImageIterator at N@@QAEXXZ)
ImageReflection.obj : error LNK2001: Unresolved external symbol  "public:
__thiscall
vtkImageProgressIterator<double>::vtkImageProgressIterator<double>(class
vtkImageData *,int *,class vtkProcessObject *,int)"
(??0?$vtkImageProgressIterator
@N@@QAE at PAVvtkImageData@@PAHPAVvtkProcessObject@@H at Z)
... and so on and so forth. It's 40 errors all together, all about the
ImageIterator or the ImageProgressIterator.

I include vtkImageProgressIterator in my cpp to work on the images, just the
way it is done i.e. in vtkImageThreshold.
What have I done wrong? Are there any dll's or include-folders I have to
manually insert in the settings of my project or the specific file?

Regards,
Michael Gessat

-----Ursprüngliche Nachricht-----
Von: Vidyadhar Kudalkar [mailto:vidyadhar at lucidindia.net] 
Gesendet: Mittwoch, 4. Februar 2004 04:40
An: Gessat, Michael
Betreff: Re: [vtkusers] Trying to create a Filter - but how?

Hi
I am not sure what errors and warnings you got. Here is what my experience
with such things. I have also tried copying and modifying some existing VTK
files. This works quite OK. Practically all the code in these VTK files is
meant to be placed in DLL files. Look at the class declaration. It includes
a macro which directs the compiler to mark this class for export from DLL. I
think you are trying to link your class as regular part of some VC++
project. In my case just deleting that macro usage removed these warnings
and error.
I hope this is of some help to you.
Yours
Vidyadhar
----- Original Message ----- 
From: "Gessat, Michael" <gessat at ira.uka.de>
To: <vtkusers at vtk.org>
Sent: Tuesday, February 03, 2004 6:21 PM
Subject: [vtkusers] Trying to create a Filter - but how?


> Hi there!
>
> I'm new to this list, so it is possible that I am to aks a rather old
> question, but I've searched the archive and haven't found it (actually, I
> found it once in March 2003, but there was no answer). So here it comes:
>
> What do I have to do, to create my own vtkImageToImageFilter? I tried to
> grab an modify code from the existing ones but all I got were warnings
from
> the compiler and errors from the linker (I use VisualC++ 6.0 and vtk
4.2.1).
>
> Thanks for your help!
>
> Michael Gessat
>



More information about the vtkusers mailing list