[vtkusers] How to link a new class

R T doctorart at hotmail.com
Sun Aug 4 19:34:09 EDT 2002


Hello all,
I have a class where I extend a VTK class:

class vtkMyPolyDataFilter:vtkPolyDataToPolyDataFilter
{........
}
How do I compile my class and link with my application?
Do I have to recompile the Whole VTK source tree and
include my class somehow( How ??)
or separately,
Build a DLL, or link it statically?

While it compiles without errors,  it doesn't link with VTK libraries,
gives " public:static vtkMyPolyDataFilter::New() unresolved"

when I define all the required methods like New(), PrintHeader(), etc
inline  in .h file,  it compiles and links, but
at runtime it gives
"can't find external  VTKCOMMON@@vtkObject@@@!##$#@"
I use MS Visual Studio 6.0

Thanks,
Roma

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com




More information about the vtkusers mailing list