[vtkusers] Trouble building VTK and using with C++

Rodrigo Lovera lobo.theslayer at gmail.com
Tue Sep 4 01:28:55 EDT 2012


Hi everyone,

I'm having serious troubles to compile the vtk's examples for c++, I'm
using Visual C++ Express 2010 and building VTK many times but still can't
figure out what's the right way to go. I'm working on an application for 3D
ultrasound visualization I'll appreciate some help with these

Errors im getting are like these
1>------ Build started: Project: TestVTK, Configuration: Debug Win32 ------
1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
unsigned long __thiscall vtkObject::AddObserver(unsigned long,class
vtkCommand *,float)" (?AddObserver at vtkObject@@QAEKKPAVvtkCommand@@M at Z)
referenced in function _main
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: class
vtkCoordinate * __thiscall
vtkSliderRepresentation2D::GetPoint2Coordinate(void)"
(?GetPoint2Coordinate at vtkSliderRepresentation2D@@QAEPAVvtkCoordinate@@XZ)
referenced in function _main
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: class
vtkCoordinate * __thiscall
vtkSliderRepresentation2D::GetPoint1Coordinate(void)"
(?GetPoint1Coordinate at vtkSliderRepresentation2D@@QAEPAVvtkCoordinate@@XZ)
referenced in function _main
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkSliderRepresentation::SetValue(double)"
(?SetValue at vtkSliderRepresentation@@QAEXN at Z) referenced in function _main
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkSliderRepresentation::SetMaximumValue(double)"
(?SetMaximumValue at vtkSliderRepresentation@@QAEXN at Z) referenced in function
_main
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkSliderRepresentation::SetMinimumValue(double)"
(?SetMinimumValue at vtkSliderRepresentation@@QAEXN at Z) referenced in function
_main
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkRenderer::AddActor(class vtkProp *)" (?AddActor at vtkRenderer
@@QAEXPAVvtkProp@@@Z) referenced in function _main
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow
*)" (?SetRenderWindow at vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z)
referenced in function _main
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: class
vtkProperty * __thiscall vtkActor::GetProperty(void)" (?GetProperty at vtkActor
@@QAEPAVvtkProperty@@XZ) referenced in function _main
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)"
(?SetInput at vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z) referenced in
function _main
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: class
vtkPolyData * __thiscall vtkPolyDataAlgorithm::GetOutput(void)"
(?GetOutput at vtkPolyDataAlgorithm@@QAEPAVvtkPolyData@@XZ) referenced in
function _main
1>Slider2D.obj : error LNK2019: unresolved external symbol "protected: void
__thiscall vtkAbstractWidget::SetWidgetRepresentation(class
vtkWidgetRepresentation *)" (?SetWidgetRepresentation at vtkAbstractWidget
@@IAEXPAVvtkWidgetRepresentation@@@Z) referenced in function "public: void
__thiscall vtkSliderWidget::SetRepresentation(class vtkSliderRepresentation
*)" (?SetRepresentation at vtkSliderWidget@@QAEXPAVvtkSliderRepresentation@@@Z)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public:
__thiscall vtkSmartPointerBase::~vtkSmartPointerBase(void)"
(??1vtkSmartPointerBase@@QAE at XZ) referenced in function "public: __thiscall
vtkSmartPointer<class vtkSphereSource>::~vtkSmartPointer<class
vtkSphereSource>(void)" (??1?$vtkSmartPointer at VvtkSphereSource@@@@QAE at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: static
class vtkSphereSource * __cdecl vtkSphereSource::New(void)"
(?New at vtkSphereSource@@SAPAV1 at XZ) referenced in function "public: static
class vtkSmartPointer<class vtkSphereSource> __cdecl vtkSmartPointer<class
vtkSphereSource>::New(void)" (?New@?$vtkSmartPointer at VvtkSphereSource
@@@@SA?AV1 at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: static
class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)"
(?New at vtkPolyDataMapper@@SAPAV1 at XZ) referenced in function "public: static
class vtkSmartPointer<class vtkPolyDataMapper> __cdecl
vtkSmartPointer<class vtkPolyDataMapper>::New(void)" (?New@
?$vtkSmartPointer at VvtkPolyDataMapper@@@@SA?AV1 at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: static
class vtkActor * __cdecl vtkActor::New(void)" (?New at vtkActor@@SAPAV1 at XZ)
referenced in function "public: static class vtkSmartPointer<class
vtkActor> __cdecl vtkSmartPointer<class vtkActor>::New(void)" (?New@
?$vtkSmartPointer at VvtkActor@@@@SA?AV1 at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: static
class vtkRenderer * __cdecl vtkRenderer::New(void)" (?New at vtkRenderer
@@SAPAV1 at XZ) referenced in function "public: static class
vtkSmartPointer<class vtkRenderer> __cdecl vtkSmartPointer<class
vtkRenderer>::New(void)" (?New@?$vtkSmartPointer at VvtkRenderer@@@@SA?AV1 at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: static
class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)"
(?New at vtkRenderWindow@@SAPAV1 at XZ) referenced in function "public: static
class vtkSmartPointer<class vtkRenderWindow> __cdecl vtkSmartPointer<class
vtkRenderWindow>::New(void)" (?New@?$vtkSmartPointer at VvtkRenderWindow
@@@@SA?AV1 at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: static
class vtkRenderWindowInteractor * __cdecl
vtkRenderWindowInteractor::New(void)" (?New at vtkRenderWindowInteractor
@@SAPAV1 at XZ) referenced in function "public: static class
vtkSmartPointer<class vtkRenderWindowInteractor> __cdecl
vtkSmartPointer<class vtkRenderWindowInteractor>::New(void)" (?New@
?$vtkSmartPointer at VvtkRenderWindowInteractor@@@@SA?AV1 at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: static
class vtkSliderRepresentation2D * __cdecl
vtkSliderRepresentation2D::New(void)" (?New at vtkSliderRepresentation2D
@@SAPAV1 at XZ) referenced in function "public: static class
vtkSmartPointer<class vtkSliderRepresentation2D> __cdecl
vtkSmartPointer<class vtkSliderRepresentation2D>::New(void)" (?New@
?$vtkSmartPointer at VvtkSliderRepresentation2D@@@@SA?AV1 at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: static
void __cdecl vtkObjectBase::operator delete(void *)" (??3vtkObjectBase@
@SAXPAX at Z) referenced in function __unwindfunclet$?New at vtkSliderCallback
@@SAPAV1 at XZ$0
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: static
void * __cdecl vtkObjectBase::operator new(unsigned int)" (??2vtkObjectBase@
@SAPAXI at Z) referenced in function "public: static class vtkSliderCallback *
__cdecl vtkSliderCallback::New(void)" (?New at vtkSliderCallback@@SAPAV1 at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "protected:
__thiscall vtkCommand::vtkCommand(void)" (??0vtkCommand@@IAE at XZ) referenced
in function "public: __thiscall vtkSliderCallback::vtkSliderCallback(void)"
(??0vtkSliderCallback@@QAE at XZ)
1>Slider2D.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall vtkObjectBase::Delete(void)" (?Delete at vtkObjectBase@@UAEXXZ)
1>Slider2D.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall vtkObjectBase::FastDelete(void)" (?FastDelete at vtkObjectBase
@@UAEXXZ)
1>Slider2D.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall vtkObjectBase::PrintSelf(class
std::basic_ostream<char,struct std::char_traits<char> > &,class vtkIndent)"
(?PrintSelf at vtkObjectBase@@UAEXAAV?$basic_ostream at DU?$char_traits at D@std@
@@std@@VvtkIndent@@@Z)
1>Slider2D.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall vtkObjectBase::PrintHeader(class
std::basic_ostream<char,struct std::char_traits<char> > &,class vtkIndent)"
(?PrintHeader at vtkObjectBase@@UAEXAAV?$basic_ostream at DU?$char_traits at D@std@
@@std@@VvtkIndent@@@Z)
1>Slider2D.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall vtkObjectBase::PrintTrailer(class
std::basic_ostream<char,struct std::char_traits<char> > &,class vtkIndent)"
(?PrintTrailer at vtkObjectBase@@UAEXAAV?$basic_ostream at DU?$char_traits at D@std@
@@std@@VvtkIndent@@@Z)
1>Slider2D.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall vtkObjectBase::Register(class vtkObjectBase *)"
(?Register at vtkObjectBase@@UAEXPAV1@@Z)
1>Slider2D.obj : error LNK2001: unresolved external symbol "protected:
virtual void __thiscall vtkObjectBase::CollectRevisions(class
std::basic_ostream<char,struct std::char_traits<char> > &)"
(?CollectRevisions at vtkObjectBase@@MAEXAAV?$basic_ostream at DU?$char_traits at D
@std@@@std@@@Z)
1>Slider2D.obj : error LNK2001: unresolved external symbol "protected:
virtual void __thiscall vtkObjectBase::RegisterInternal(class vtkObjectBase
*,int)" (?RegisterInternal at vtkObjectBase@@MAEXPAV1 at H@Z)
1>Slider2D.obj : error LNK2001: unresolved external symbol "protected:
virtual void __thiscall vtkObjectBase::UnRegisterInternal(class
vtkObjectBase *,int)" (?UnRegisterInternal at vtkObjectBase@@MAEXPAV1 at H@Z)
1>Slider2D.obj : error LNK2001: unresolved external symbol "protected:
virtual void __thiscall vtkObjectBase::ReportReferences(class
vtkGarbageCollector *)" (?ReportReferences at vtkObjectBase
@@MAEXPAVvtkGarbageCollector@@@Z)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: static
int __cdecl vtkObjectBase::IsTypeOf(char const *)" (?IsTypeOf at vtkObjectBase
@@SAHPBD at Z) referenced in function "public: static int __cdecl
vtkCommand::IsTypeOf(char const *)" (?IsTypeOf at vtkCommand@@SAHPBD at Z)
1>Slider2D.obj : error LNK2019: unresolved external symbol "protected:
__thiscall vtkObjectBase::vtkObjectBase(void)" (??0vtkObjectBase@@IAE at XZ)
referenced in function "public: static class vtkObjectBase * __cdecl
vtkObjectBase::New(void)" (?New at vtkObjectBase@@SAPAV1 at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: void
__thiscall vtkCommand::UnRegister(void)" (?UnRegister at vtkCommand@@QAEXXZ)
referenced in function "public: virtual void __thiscall
vtkCommand::UnRegister(class vtkObjectBase *)" (?UnRegister at vtkCommand
@@UAEXPAVvtkObjectBase@@@Z)
1>Slider2D.obj : error LNK2019: unresolved external symbol "protected:
virtual __thiscall vtkObjectBase::~vtkObjectBase(void)" (??1vtkObjectBase@
@MAE at XZ) referenced in function "protected: virtual __thiscall
vtkCommand::~vtkCommand(void)" (??1vtkCommand@@MAE at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "public: static
class vtkSliderWidget * __cdecl vtkSliderWidget::New(void)"
(?New at vtkSliderWidget@@SAPAV1 at XZ) referenced in function "public: static
class vtkSmartPointer<class vtkSliderWidget> __cdecl vtkSmartPointer<class
vtkSliderWidget>::New(void)" (?New@?$vtkSmartPointer at VvtkSliderWidget
@@@@SA?AV1 at XZ)
1>Slider2D.obj : error LNK2019: unresolved external symbol "protected:
__thiscall vtkSmartPointerBase::vtkSmartPointerBase(class vtkObjectBase
*,class vtkSmartPointerBase::NoReference const &)" (??0vtkSmartPointerBase@
@IAE at PAVvtkObjectBase@@ABVNoReference at 0@@Z) referenced in function
"protected: __thiscall vtkSmartPointer<class
vtkSphereSource>::vtkSmartPointer<class vtkSphereSource>(class
vtkSphereSource *,class vtkSmartPointerBase::NoReference const &)"
(??0?$vtkSmartPointer at VvtkSphereSource@@@@IAE at PAVvtkSphereSource
@@ABVNoReference at vtkSmartPointerBase@@@Z)

-- 
*Rodrigo aka WarHearT*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120904/3d2c62de/attachment.htm>


More information about the vtkusers mailing list