<div class="gmail_quote">On Thu, Mar 3, 2011 at 2:27 PM, Rong Yang <span dir="ltr"><<a href="mailto:kusanagirong@hotmail.co.nz">kusanagirong@hotmail.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<font face="Tahoma" size="4">Hi David,</font><div style="font-family:Tahoma"><font size="4"><br></font></div><div style="font-family:Tahoma"><font size="4">Thanks for your reply. I could successfully use the MSVS 2010 to compile the VTK source code which generated by CMake. My problem is after that, I tried to use the vtkDelaunay2D class in my own project.</font></div>
<div style="font-family:Tahoma"><font size="4">I tried to add the Project dependencies</font></div><div style="font-size:10pt"><font face="Tahoma"><span style="font-family:Consolas;white-space:pre-wrap"><span style="color:blue">#pragma</span> <span style="color:blue">comment</span>(<span style="color:blue">lib</span>,<span style="color:#a31515">"vtkCommon.lib"</span>)</span></font></div>
<div style="font-size:10pt"><font face="Tahoma"><span style="font-family:Consolas;white-space:pre-wrap"></span><span style="font-family:Consolas;white-space:pre-wrap"><span style="color:blue">#pragma</span> <span style="color:blue">comment</span>(<span style="color:blue">lib</span>,<span style="color:rgb(163, 21, 21)">"vtkFiltering.lib"</span>)</span></font></div>
<div style="font-size:10pt"><font face="Tahoma"><span style="font-family:Consolas;white-space:pre-wrap"><span style="color:blue">#pragma</span> <span style="color:blue">comment</span>(<span style="color:blue">lib</span>,<span style="color:rgb(163, 21, 21)">"vtkGraphics.lib"</span>)</span></font></div>
<div style="font-size:10pt"><font face="Tahoma"><span style="font-family:Consolas;white-space:pre-wrap"><span style="font-family:Tahoma;font-size:large;white-space:normal">Set the VC Directories (Include directories and Lib Directories) but I still get following link errors. I think I got something wrong with my configuration~~~</span></span></font></div>
<div style="font-size:10pt"><font face="Tahoma"><span style="font-family:Consolas;white-space:pre-wrap"><span style="font-family:Tahoma;white-space:normal;font-size:16pt"></span></span></font></div></div></blockquote></div>
<br><div>Please keep the discussion on the mailing list.</div><div><br></div><div>You aid you have set the include and library directories, but have you actually set the libraries to link to? (I don't know what the pragma's do, but there is a place to set them in the VS configuration).</div>
<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><br>David</div>