<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hi</DIV>
<DIV>&nbsp;</DIV>
<DIV>It seems you did not includes VTK_LIBRARIES in your demo application . 
Modifiy your CMake list and add libraries like this.</DIV>
<DIV>&nbsp;</DIV>
<DIV>TARGET_LINK_LIBRARIES(YourProjectName ${VTK_LIBRARIES} )</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Alex</DIV>
<DIV><BR>&nbsp;</DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV>&nbsp;</DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=lobo.theslayer@gmail.com 
href="mailto:lobo.theslayer@gmail.com">Rodrigo Lovera</A> </DIV>
<DIV><B>Sent:</B> Tuesday, September 04, 2012 10:58 AM</DIV>
<DIV><B>To:</B> <A title=vtkusers@vtk.org 
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV><B>Subject:</B> [vtkusers] Trouble building VTK and using with 
C++</DIV></DIV></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Hi 
everyone, 
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>Errors im getting are like these</DIV>
<DIV>
<DIV>1&gt;------ Build started: Project: TestVTK, Configuration: Debug Win32 
------</DIV>
<DIV>1&gt;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&gt;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&gt;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&gt;Slider2D.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall vtkSliderRepresentation::SetValue(double)" 
(?SetValue@vtkSliderRepresentation@@QAEXN@Z) referenced in function _main</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall vtkSliderRepresentation::SetMaximumValue(double)" 
(?SetMaximumValue@vtkSliderRepresentation@@QAEXN@Z) referenced in function 
_main</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall vtkSliderRepresentation::SetMinimumValue(double)" 
(?SetMinimumValue@vtkSliderRepresentation@@QAEXN@Z) referenced in function 
_main</DIV>
<DIV>1&gt;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&gt;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&gt;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&gt;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&gt;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&gt;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&gt;Slider2D.obj : error LNK2019: unresolved external symbol "public: 
__thiscall vtkSmartPointerBase::~vtkSmartPointerBase(void)" 
(??1vtkSmartPointerBase@@QAE@XZ) referenced in function "public: __thiscall 
vtkSmartPointer&lt;class vtkSphereSource&gt;::~vtkSmartPointer&lt;class 
vtkSphereSource&gt;(void)" 
(??1?$vtkSmartPointer@VvtkSphereSource@@@@QAE@XZ)</DIV>
<DIV>1&gt;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&lt;class vtkSphereSource&gt; __cdecl vtkSmartPointer&lt;class 
vtkSphereSource&gt;::New(void)" 
(?New@?$vtkSmartPointer@VvtkSphereSource@@@@SA?AV1@XZ)</DIV>
<DIV>1&gt;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&lt;class vtkPolyDataMapper&gt; __cdecl vtkSmartPointer&lt;class 
vtkPolyDataMapper&gt;::New(void)" 
(?New@?$vtkSmartPointer@VvtkPolyDataMapper@@@@SA?AV1@XZ)</DIV>
<DIV>1&gt;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&lt;class 
vtkActor&gt; __cdecl vtkSmartPointer&lt;class vtkActor&gt;::New(void)" 
(?New@?$vtkSmartPointer@VvtkActor@@@@SA?AV1@XZ)</DIV>
<DIV>1&gt;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&lt;class vtkRenderer&gt; __cdecl vtkSmartPointer&lt;class 
vtkRenderer&gt;::New(void)" 
(?New@?$vtkSmartPointer@VvtkRenderer@@@@SA?AV1@XZ)</DIV>
<DIV>1&gt;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&lt;class vtkRenderWindow&gt; __cdecl vtkSmartPointer&lt;class 
vtkRenderWindow&gt;::New(void)" 
(?New@?$vtkSmartPointer@VvtkRenderWindow@@@@SA?AV1@XZ)</DIV>
<DIV>1&gt;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&lt;class vtkRenderWindowInteractor&gt; __cdecl 
vtkSmartPointer&lt;class vtkRenderWindowInteractor&gt;::New(void)" 
(?New@?$vtkSmartPointer@VvtkRenderWindowInteractor@@@@SA?AV1@XZ)</DIV>
<DIV>1&gt;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&lt;class vtkSliderRepresentation2D&gt; __cdecl 
vtkSmartPointer&lt;class vtkSliderRepresentation2D&gt;::New(void)" 
(?New@?$vtkSmartPointer@VvtkSliderRepresentation2D@@@@SA?AV1@XZ)</DIV>
<DIV>1&gt;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&gt;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&gt;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&gt;Slider2D.obj : error LNK2001: unresolved external symbol "public: 
virtual void __thiscall vtkObjectBase::Delete(void)" 
(?Delete@vtkObjectBase@@UAEXXZ)</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2001: unresolved external symbol "public: 
virtual void __thiscall vtkObjectBase::FastDelete(void)" 
(?FastDelete@vtkObjectBase@@UAEXXZ)</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2001: unresolved external symbol "public: 
virtual void __thiscall vtkObjectBase::PrintSelf(class 
std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,class 
vtkIndent)" 
(?PrintSelf@vtkObjectBase@@UAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VvtkIndent@@@Z)</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2001: unresolved external symbol "public: 
virtual void __thiscall vtkObjectBase::PrintHeader(class 
std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,class 
vtkIndent)" 
(?PrintHeader@vtkObjectBase@@UAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VvtkIndent@@@Z)</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2001: unresolved external symbol "public: 
virtual void __thiscall vtkObjectBase::PrintTrailer(class 
std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,class 
vtkIndent)" 
(?PrintTrailer@vtkObjectBase@@UAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VvtkIndent@@@Z)</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2001: unresolved external symbol "public: 
virtual void __thiscall vtkObjectBase::Register(class vtkObjectBase *)" 
(?Register@vtkObjectBase@@UAEXPAV1@@Z)</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2001: unresolved external symbol "protected: 
virtual void __thiscall vtkObjectBase::CollectRevisions(class 
std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;)" 
(?CollectRevisions@vtkObjectBase@@MAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2001: unresolved external symbol "protected: 
virtual void __thiscall vtkObjectBase::RegisterInternal(class vtkObjectBase 
*,int)" (?RegisterInternal@vtkObjectBase@@MAEXPAV1@H@Z)</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2001: unresolved external symbol "protected: 
virtual void __thiscall vtkObjectBase::UnRegisterInternal(class vtkObjectBase 
*,int)" (?UnRegisterInternal@vtkObjectBase@@MAEXPAV1@H@Z)</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2001: unresolved external symbol "protected: 
virtual void __thiscall vtkObjectBase::ReportReferences(class 
vtkGarbageCollector *)" 
(?ReportReferences@vtkObjectBase@@MAEXPAVvtkGarbageCollector@@@Z)</DIV>
<DIV>1&gt;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&gt;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&gt;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&gt;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&gt;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&lt;class vtkSliderWidget&gt; __cdecl vtkSmartPointer&lt;class 
vtkSliderWidget&gt;::New(void)" 
(?New@?$vtkSmartPointer@VvtkSliderWidget@@@@SA?AV1@XZ)</DIV>
<DIV>1&gt;Slider2D.obj : error LNK2019: unresolved external symbol "protected: 
__thiscall vtkSmartPointerBase::vtkSmartPointerBase(class vtkObjectBase *,class 
vtkSmartPointerBase::NoReference const &amp;)" 
(??0vtkSmartPointerBase@@IAE@PAVvtkObjectBase@@ABVNoReference@0@@Z) referenced 
in function "protected: __thiscall vtkSmartPointer&lt;class 
vtkSphereSource&gt;::vtkSmartPointer&lt;class vtkSphereSource&gt;(class 
vtkSphereSource *,class vtkSmartPointerBase::NoReference const &amp;)" 
(??0?$vtkSmartPointer@VvtkSphereSource@@@@IAE@PAVvtkSphereSource@@ABVNoReference@vtkSmartPointerBase@@@Z)</DIV>
<DIV>&nbsp;</DIV>-- <BR><B><FONT color=#000066 
face="'comic sans ms', sans-serif">Rodrigo aka WarHearT</FONT></B><BR></DIV>
<P>
<HR>
_______________________________________________<BR>Powered by 
www.kitware.com<BR><BR>Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html<BR><BR>Please keep messages 
on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR><BR>Follow 
this link to 
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></DIV></DIV></DIV></BODY></HTML>