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