<br><div class="gmail_quote">On Mon, Jun 22, 2009 at 9:07 AM, Ilinca, Radu <span dir="ltr"><<a href="mailto:rilinca@student.ethz.ch">rilinca@student.ethz.ch</a>></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\ -> source</font></div>
<div><font size="2" face="Arial">2) d:\vtk_build\ -> 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 -> OPTIONS ->
Projects & Solutions -> Include Files , set: C:\Program
Files\VTK\include\vtk-5.4\</font></div>
<div><font size="2" face="Arial">also TOOLS -> OPTIONS -> Projects &
Solutions -> Library Files -> 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">>aa.obj : error LNK2019: unresolved external symbol "public:
void __thiscall vtkCamera::Azimuth(double)" (?Azimuth@vtkCamera@@QAEXN@Z)
referenced in function _main</font></p>
<p><font size="2">1>aa.obj : error LNK2019: unresolved external symbol "public:
class vtkCamera * __thiscall vtkRenderer::GetActiveCamera(void)"
(?GetActiveCamera@vtkRenderer@@QAEPAVvtkCamera@@XZ) referenced in function
_main</font></p>
<p><font size="2">1>aa.obj : error LNK2019: unresolved external symbol "public:
static class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)"
(?New@vtkRenderWindow@@SAPAV1@XZ) referenced in function _main</font></p>
<p><font size="2">1>aa.obj : error LNK2019: unresolved external symbol "public:
void __thiscall vtkRenderer::AddActor(class vtkProp *)"
(?AddActor@vtkRenderer@@QAEXPAVvtkProp@@@Z) referenced in function
_main</font></p>
<p><font size="2">1>aa.obj : error LNK2019: unresolved external symbol "public:
static class vtkRenderer * __cdecl vtkRenderer::New(void)"
(?New@vtkRenderer@@SAPAV1@XZ) referenced in function _main</font></p>
<p><font size="2">1>aa.obj : error LNK2019: unresolved external symbol "public:
static class vtkActor * __cdecl vtkActor::New(void)" (?New@vtkActor@@SAPAV1@XZ)
referenced in function _main</font></p>
<p><font size="2">1>aa.obj : error LNK2019: unresolved external symbol "public:
static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)"
(?New@vtkPolyDataMapper@@SAPAV1@XZ) referenced in function _main</font></p>
<p><font size="2">1>aa.obj : error LNK2019: unresolved external symbol "public:
static class vtkConeSource * __cdecl vtkConeSource::New(void)"
(?New@vtkConeSource@@SAPAV1@XZ) referenced in function _main</font></p>
<p><font size="2">1>aa.obj : error LNK2019: unresolved external symbol "public:
class vtkAlgorithmOutput * __thiscall vtkAlgorithm::GetOutputPort(int)"
(?GetOutputPort@vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@H@Z) referenced in
function "public: class vtkAlgorithmOutput * __thiscall
vtkAlgorithm::GetOutputPort(void)"
(?GetOutputPort@vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@XZ)</font></p>
<p><font size="2">1>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>