<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783">
<STYLE></STYLE>
</HEAD>
<BODY 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></BODY></HTML>