[vtkusers] linking problem with inheritance [urgent]

David Thompson dcthomp at sandia.gov
Wed Nov 20 15:56:08 EST 2002


On Wed, 2002-11-20 at 10:14, imho wrote:
> Hi,
> I try to make a custom interactor, so
> 
> class vtkInteractorStyleCustom : public vtkInteractorStyle
> {
> ...
> }
> 
> but I have a linking problem :/
> vtkInteractorStyleCustom.obj : error LNK2001: unresolved external symbol 
> "public: virtual char const * __thiscall 
> vtkInteractorStyle::GetClassNameW(void)" 
> (?GetClassNameW at vtkInteractorStyle@@UAEPBDXZ)
> 
> What do I have to do?
#include <vtkSetGet.h>
and then call
vtkTypeRevisionMacro(vtkInteractorStyleCustom,vtkInteractorStyle)
inside a public section of your class declaration.







More information about the vtkusers mailing list