<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr">
<div id="OWAFontStyleDivID" style="font-size:10pt;color:#000000;background-color:#FFFFFF;font-family:'Times New Roman', Times, serif;">
<style type="text/css" style="">
<!--
p
{margin-top:0px;
margin-bottom:0px}
-->
</style>
<div id="OWAFontStyleDivID" style="font-size:10pt; color:#000000; background-color:#FFFFFF; font-family:'Times New Roman',Times,serif">
<p>Hello,<br>
</p>
<p><br>
</p>
<p>I am using the vtk library for the first time. I am trying to run a simple example from the vtk examples available online using VS 2010<span style="color:rgb(255,0,0)"></span>. However I am making some mistake in linking the required vtk lib and directories.
I keep getting the following error:<br>
</p>
<p><br>
</p>
<p><span style="color:rgb(255,0,0); text-decoration:none">error LNK2019: unresolved external symbol "__declspec(dllimport) public: static double __cdecl vtkLine::DistanceToLine(double * const,double * const,double * const,double &,double * const)" (__imp_?DistanceToLine@vtkLine@@SANQAN00AAN0@Z)
referenced in function _main</span><br>
</p>
<p><br>
</p>
<p>I have built vtk using cmake and also added the vtk directory to additional directories and included the vtk library to my project. Could you help me figure out whether I am missing any step in the linking process? <br>
</p>
<div>
<p><br>
</p>
<p><br>
</p>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">Regards,
<div>Rutuja <br>
</div>
<div><br>
</div>
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>