<br><div class="gmail_quote">On Mon, Jun 22, 2009 at 9:07 AM, Ilinca, Radu <span dir="ltr">&lt;<a href="mailto:rilinca@student.ethz.ch">rilinca@student.ethz.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div bgcolor="#ffffff">
<div> </div>
<div><font size="2" face="Arial">Hi all !</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">As an absolute beginner in VTK and limited 
experience in Visual Studio 2008, I want to run a simple vtk demo program (the 
cone). I installed VTK as follows with CMake:</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">1) d:\vtk_home\  -&gt; source</font></div>
<div><font size="2" face="Arial">2) d:\vtk_build\   -&gt; where Cmake did 
its work.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Further on, I built the VTK big project 
(all_build).</font></div>
<div><font size="2" face="Arial">Then, I configured from TOOLS -&gt; OPTIONS -&gt; 
Projects &amp; Solutions -&gt; Include Files , set: C:\Program 
Files\VTK\include\vtk-5.4\</font></div>
<div><font size="2" face="Arial">also TOOLS -&gt; OPTIONS -&gt; Projects &amp; 
Solutions -&gt; Library Files -&gt;  set: 
d:\vtk_build\bin\release</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Apart from this, I have not changed anything in the 
general standard configuration of Visual Studio 2008</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">When I build, I get the following 
erros:</font></div>
<div><font size="1">
<p><font size="2">&gt;aa.obj : error LNK2019: unresolved external symbol &quot;public: 
void __thiscall vtkCamera::Azimuth(double)&quot; (?Azimuth@vtkCamera@@QAEXN@Z) 
referenced in function _main</font></p>
<p><font size="2">1&gt;aa.obj : error LNK2019: unresolved external symbol &quot;public: 
class vtkCamera * __thiscall vtkRenderer::GetActiveCamera(void)&quot; 
(?GetActiveCamera@vtkRenderer@@QAEPAVvtkCamera@@XZ) referenced in function 
_main</font></p>
<p><font size="2">1&gt;aa.obj : error LNK2019: unresolved external symbol &quot;public: 
static class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)&quot; 
(?New@vtkRenderWindow@@SAPAV1@XZ) referenced in function _main</font></p>
<p><font size="2">1&gt;aa.obj : error LNK2019: unresolved external symbol &quot;public: 
void __thiscall vtkRenderer::AddActor(class vtkProp *)&quot; 
(?AddActor@vtkRenderer@@QAEXPAVvtkProp@@@Z) referenced in function 
_main</font></p>
<p><font size="2">1&gt;aa.obj : error LNK2019: unresolved external symbol &quot;public: 
static class vtkRenderer * __cdecl vtkRenderer::New(void)&quot; 
(?New@vtkRenderer@@SAPAV1@XZ) referenced in function _main</font></p>
<p><font size="2">1&gt;aa.obj : error LNK2019: unresolved external symbol &quot;public: 
static class vtkActor * __cdecl vtkActor::New(void)&quot; (?New@vtkActor@@SAPAV1@XZ) 
referenced in function _main</font></p>
<p><font size="2">1&gt;aa.obj : error LNK2019: unresolved external symbol &quot;public: 
static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)&quot; 
(?New@vtkPolyDataMapper@@SAPAV1@XZ) referenced in function _main</font></p>
<p><font size="2">1&gt;aa.obj : error LNK2019: unresolved external symbol &quot;public: 
static class vtkConeSource * __cdecl vtkConeSource::New(void)&quot; 
(?New@vtkConeSource@@SAPAV1@XZ) referenced in function _main</font></p>
<p><font size="2">1&gt;aa.obj : error LNK2019: unresolved external symbol &quot;public: 
class vtkAlgorithmOutput * __thiscall vtkAlgorithm::GetOutputPort(int)&quot; 
(?GetOutputPort@vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@H@Z) referenced in 
function &quot;public: class vtkAlgorithmOutput * __thiscall 
vtkAlgorithm::GetOutputPort(void)&quot; 
(?GetOutputPort@vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@XZ)</font></p>
<p><font size="2">1&gt;C:\Documents and Settings\Radu Ilinca\My Documents\Visual 
Studio 2008\Projects\aa\Debug\aa.exe : fatal error LNK1120: 9 unresolved 
externals</font></p>
<p> </p>
<p><font size="2" face="Arial">Thanks,</font></p>
<p><font size="2" face="Arial">Radu Ilinca.</font></p></font></div></div>
</blockquote><div>Looks you need to link to vtkHybrid (maybe libvtkHybrid in visual studio?)<br><br>Dave<br></div></div>