<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi all,<BR>
<BR>
I am a newb of VTK, I ame going to do a project by using Visual studio 2008 and VTK. So I downloaded and set the VTK source by CMAKE and generated the VTK.sln. After that I compiled the VTK project by using VS 2008 and built the INSTALL project. I also added the VS->Tools->Options->VC++Directories->Include file "<my install path>/include/vtk-5.0" and added the VS->Tools->Options->VC++Directories->Library file "<my install path>\lib".<BR>
<BR>
But when I tried to declare a vtkPoints pointer variable, <BR>
<BR>
#include <vtkPoints.h><BR>
...<BR>
void DrawDelaunay2D()<BR>
{<BR>
vtkPoints *pts = vtkPoints::New();<BR>
}<BR>
...<BR>
<BR>I still get an link error message:<BR>
<BR>
1>Stroke.obj : error LNK2019: unresolved external symbol "public: static class vtkPoints * __cdecl vtkPoints::New(void)" (<A href="mailto:?New@vtkPoints@@SAPAV1@XZ">?New@vtkPoints@@SAPAV1@XZ</A>) referenced in function "public: void __thiscall Stroke::processStroke(void)" (<A href="mailto:?processStroke@Stroke@@QAEXXZ">?processStroke@Stroke@@QAEXXZ</A>)<BR>1>C:\Documents and Settings\Rong\My Documents\Visual Studio 2008\Projects\LifeSketch\Debug\LifeSketch.exe : fatal error LNK1120: 1 unresolved externals<BR>
<BR>
Can any1 plz tell me whats wrong with the installation or anyother thing might cause the error.<BR>
<BR>
I tried to check the mailing list, there was a guy facing similary problem and asked in Jun 2004 but there was no answer for his question.<BR>
<BR>
<BR>
<BR>
Thanks<BR><BR>
<DIV><FONT color=#000066><FONT face="Verdana, Geneva, Arial, Sans-serif"><FONT size=2><U>YANG</U> Rong <BR></FONT><BR>20 Orton,</FONT></FONT></DIV>
<DIV><FONT color=#000066><FONT face="Verdana, Geneva, Arial, Sans-serif">Glenfield, AKL, <BR>New Zealand <BR><BR>Cell: +64 21 2355108</FONT></FONT></DIV>
<DIV><FONT face=Verdana color=#000066>Home phone: 09 4434960</FONT></DIV><br /><hr />用 Windows Live Spaces 展示个性自我,与好友分享生活! <a href='http://spaces.live.com/?page=HP' target='_new'>了解更多信息!</a></body>
</html>