David,<br><br>Thank you for your reply.<br><br>I follow the instructions from the textbook to use CMake to generate all these .lib files and include them in my application. Then develop with them. I&#39;ve done other applications in this way before. So i think it should be right. However, this is the only way I know to develop with VTK.<br>
<br>I know it is a silly question, but is there anyway else to develop VTK with C++ and VS2008?<br><br>Thank you very much for your help.<br><br>Yours<br>Wenlong<br><br><div class="gmail_quote">2011/10/18 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">2011/10/18 Wenlong Wang &lt;<a href="mailto:scc.wwl@gmail.com">scc.wwl@gmail.com</a>&gt;:<br>

<div><div></div><div class="h5">&gt; Dear all,<br>
&gt;<br>
&gt; I&#39;m trying to run the example on<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/LandmarkTransform" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/LandmarkTransform</a> . I&#39;m<br>
&gt; using VS2008 and C++ on Windows Vista. My VTK is installed at the root<br>
&gt; directory of disk D.<br>
&gt;<br>
&gt; I&#39;ve put the following items in include directory:<br>
&gt;<br>
&gt;<br>
&gt; &quot;D:\VTK 5.6\bin&quot;;&quot;D:\VTK 5.6\bin\Common&quot;;&quot;D:\VTK 5.6\bin\Utilities&quot;;&quot;D:\VTK 5.6\bin\VolumeRendering&quot;;&quot;D:\VTK 5.6\bin\Rendering&quot;;&quot;D:\VTK 5.6\bin\Charts&quot;;&quot;D:\VTK 5.6\bin\GUISupport\MFC&quot;;&quot;D:\VTK 5.6\bin\Utilities\vtkalglib&quot;;&quot;D:\VTK 5.6\vtk\Infovis&quot;;&quot;D:\VTK 5.6\vtk\Geovis&quot;;&quot;D:\VTK 5.6\vtk\Views&quot;;&quot;D:\VTK 5.6\vtk\VolumeRendering&quot;;&quot;D:\VTK 5.6\vtk\Hybrid&quot;;&quot;D:\VTK 5.6\vtk\Widgets&quot;;&quot;D:\VTK 5.6\vtk\Rendering&quot;;&quot;D:\VTK 5.6\vtk\Charts&quot;;&quot;D:\VTK 5.6\vtk\Rendering\Testing\Cxx&quot;;&quot;D:\VTK 5.6\vtk\IO&quot;;&quot;D:\VTK 5.6\vtk\Imaging&quot;;&quot;D:\VTK 5.6\vtk\Graphics&quot;;&quot;D:\VTK 5.6\vtk\GenericFiltering&quot;;&quot;D:\VTK 5.6\vtk\Filtering&quot;;&quot;D:\VTK 5.6\vtk\Common&quot;;&quot;D:\VTK 5.6\vtk\Utilities&quot;;&quot;D:\VTK 5.6\vtk\Common\Testing\Cxx&quot;;&quot;D:\VTK 5.6\bin\Utilities\vtklibproj4&quot;;&quot;D:\VTK 5.6\vtk\Utilities\vtklibproj4&quot;;&quot;D:\VTK 5.6\bin\Utilities\DICOMParser&quot;;&quot;D:\VTK 5.6\vtk\Utilities\DICOMParser&quot;;&quot;D:\VTK 5.6\bin\Utilities\vtkfreetype\include&quot;;&quot;D:\VTK 5.6\vtk\Utilities\vtkfreetype\include&quot;;&quot;D:\VTK 5.6\bin\Utilities\vtknetcdf&quot;;&quot;D:\VTK 5.6\vtk\Utilities\vtknetcdf&quot;;&quot;D:\VTK 5.6\bin\Utilities\vtkexodus2\include&quot;;&quot;D:\VTK 5.6\vtk\Utilities\vtkexodus2\include&quot;;&quot;D:\VTK 5.6\bin\Utilities\MaterialLibrary&quot;;&quot;D:\VTK 5.6\vtk\Utilities\MaterialLibrary&quot;;&quot;D:\VTK 5.6\bin\Utilities\verdict&quot;;&quot;D:\VTK 5.6\vtk\Utilities\verdict&quot;;&quot;D:\VTK 5.6\vtk\Utilities\utf8\source&quot;;&quot;D:\VTK 5.6\vtk\GUISupport\MFC&quot;;&quot;D:\VTK 5.6\vtk\Utilities\vtkalglib&quot;;&quot;D:\VTK 5.6\vtk\Utilities\ftgl\src&quot;;&quot;D:\VTK 5.6\bin\Utilities\ftgl&quot;;<br>

&gt;<br>
&gt;<br>
&gt;<br>
&gt; And put following items in additional dependencies:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib &quot;D:\VTK 5.6\bin\bin\Debug\vtkRendering.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkGraphics.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkverdict.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkImaging.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkIO.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkFiltering.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkCommon.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkDICOMParser.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkNetCDF.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkmetaio.lib&quot; comctl32.lib wsock32.lib &quot;D:\VTK 5.6\bin\bin\Debug\vtksqlite.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkpng.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtktiff.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkzlib.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkjpeg.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkexpat.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtksys.lib&quot; ws2_32.lib vfw32.lib &quot;D:\VTK 5.6\bin\bin\Debug\vtkftgl.lib&quot; &quot;D:\VTK 5.6\bin\bin\Debug\vtkfreetype.lib&quot; opengl32.lib $(NOINHERIT)<br>

&gt;<br>
&gt;<br>
&gt;<br>
&gt; The application generated a error of &quot;error lnk2019 unresolved external<br>
&gt; symbol&quot; which points to the vtkLandmarkTransform::SetSourceLandmarks() and<br>
&gt; vtkLandmarkTransform::SetTargetLandmarks().<br>
&gt;<br>
&gt; Can anyone kindly help me?<br>
&gt;<br>
&gt; Many thanks in advance.<br>
&gt;<br>
&gt; Yours<br>
&gt; Long<br>
<br>
</div></div>This is certainly not a bug. Why are you not using CMake to create your project?<br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br>