[vtkusers] (no subject)

bxb1280 bxb1280 at yahoo.com
Fri Mar 8 19:11:50 EST 2002


vtkusers,hi
      I want to derive a class from VTK class in VC++,but it produce a lot of linking error .
for example .I derive a class(named vtkmyObject) from vtkObject in VC++,but it produces following  error.  Can you tell me how to derive my own class from vtk?
thanks for your help.

            Deleting intermediate files and output files for project 'SinoVol - Win32 Debug'.
--------------------Configuration: SinoVol - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Automatically linking with BCGCB58d.dll
Compiling...
MainFrm.cpp
SinoVol.cpp
SinoVolDoc.cpp
SinoVolView.cpp
WorkspaceBar.cpp
vtkmyobject.cpp
Generating Code...
Linking...
vtkmyobject.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall vtkObject::PrintTrailer(class ostream &,class vtkIndent)" (?PrintTrailer at vtkObject@@UAEXAAVostream@@VvtkIndent@@@Z)
vtkmyobject.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall vtkObject::PrintHeader(class ostream &,class vtkIndent)" (?PrintHeader at vtkObject@@UAEXAAVostream@@VvtkIndent@@@Z)
vtkmyobject.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall vtkObject::PrintSelf(class ostream &,class vtkIndent)" (?PrintSelf at vtkObject@@UAEXAAVostream@@VvtkIndent@@@Z)
Debug/SinoVol.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
Creating browse info file...

SinoVol.exe - 4 error(s), 0 warning(s)

                              
              bxb1280
              bxb1280 at yahoo.com
                 2002-03-08


More information about the vtkusers mailing list