<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hello David:<br><br>Yes, in the project properties, there is the additional library directories. Maybe there is some problems during the vtk installation, I am checking that. Thanks.<br><br>Ciao,<br>Leilei<br><br><hr id="stopSpelling">Date: Mon, 30 Mar 2009 10:53:21 -0400<br>From: daviddoria@gmail.com<br>CC: vtkusers@vtk.org<br>Subject: Re: [vtkusers] vtkPolyDataMapper "error LNK2001: unresolved        external symbol".<br><br>I don't use windows, so I don't know about these dll's, but it sounds like you may not have the compiler set to check that directory for files to link to (the -L flag in gcc). I'd bet you have to add the c:\... \vtk\bin\ folder to a list somewhere in the visual studio project properties.<br>
<br clear="all">Thanks,<br><br>David<br>
<br><br><div class="EC_gmail_quote">2009/3/30 吴磊磊 <span dir="ltr">&lt;<a href="mailto:wu-leilei@hotmail.com">wu-leilei@hotmail.com</a>&gt;</span><br><blockquote class="EC_gmail_quote" style="padding-left: 1ex;">




<div>
Hello David:<br><br>Yes, I missed the vtkRendering. Then I met the other problem, during the debuging, "This application has failed to start because vtkRendering.dll was not found. Re-installing the application may fix this problem". Actually the vtkRendering.dll is in the \bin\debug or \bin\debug. Do you have further ideas on this problem. Thx.<br>
<br>Best,<br>Leilei<br><br><hr>Date: Mon, 30 Mar 2009 09:53:14 -0400<br>From: <a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a><br>CC: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] vtkPolyDataMapper "error LNK2001: unresolved        external symbol".<div><div></div><div class="h5"><br><br>Sounds like you aren't linking to the vtk libraries. I usually just link to a lot of them<br>
<br>vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO&nbsp; vtkFiltering vtkCommon<br><br>just to be sure :)<br><br clear="all">
Thanks,<br><br>David<br>
<br><br><div>2009/3/30 吴磊磊 <span dir="ltr">&lt;<a href="mailto:wu-leilei@hotmail.com">wu-leilei@hotmail.com</a>&gt;</span><br><blockquote style="padding-left: 1ex;">




<div>
Hello All:<br><br>My name is Leilei Wu, and I got some problems when compiling the codes related with VTK in visual studio 2005, both in release and debug mode. (I used visual studio 2003 before, there was no this kind problem)<br>

<br>In the code PART1 (see below), the compiling is ok, but in the code PART2&nbsp; there are problems of<br><br>error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)" (__imp_?SetInput@vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z)<br>

error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)" <br>(__imp_?New@vtkPolyDataMapper@@SAPAV1@XZ)<br><br>================================<br>

code PART1:<br>&nbsp; vtkContourFilter&nbsp; *VesselVolume =&nbsp; vtkContourFilter::New();<br>&nbsp; VesselVolume-&gt;SetInput( connector-&gt;GetOutput() );<br>&nbsp; VesselVolume-&gt;SetValue(0,255);<br><br>&amp;n
 bsp; vtkSmoothPolyDataFilter *SmoothPolyDataFilter = vtkSmoothPolyDataFilter::New();<br>&nbsp; SmoothPolyDataFilter-&gt;SetInput( VesselVolume-&gt;GetOutput() );<br>&nbsp; SmoothPolyDataFilter-&gt;SetNumberOfIterations( 175 );<br>

<br>&nbsp; vtkPolyDataNormals *NormalsPolyData = vtkPolyDataNormals::New();<br>&nbsp; NormalsPolyData-&gt;SetInput( SmoothPolyDataFilter-&gt;GetOutput() );<br>&nbsp; NormalsPolyData-&gt;FlipNormalsOn();<br><br>code PART2:<br>&nbsp; vtkPolyDataMapper&nbsp; *PolyMapper = vtkPolyDataMapper::New();<br>

&nbsp; PolyMapper-&gt;SetInput( NormalsPolyData-&gt;GetOutput() );<br>&nbsp; int colormode = PolyMapper-&gt;GetColorMode();<br>=================================<br>with the vtk header files of <br><br>#include "vtkImageWriter.h"<br>

#include "vtkImageData.h"<br>#include "vtkImageViewer.h"<br>#include "vtkRenderWindowInteractor.h"<br>#include "vtkDataSetMapper.h"<br>#include "vtkPolyDataMapper.h"<br>#include "vtkRenderWindow.h"<br>

#include "vtkCamera.h"<br>#
 include "vtkActor.h"<br>#include "vtkRenderer.h"<br>#include "vtkCommand.h"<br>#include "vtkInteractorStyleTrackballCamera.h"<br>#include "vtkProperty.h"<br>#include "vtkMarchingCubes.h"<br>

#include "vtkContourFilter.h"<br>#include "vtkOutlineFilter.h"<br>#include "vtkPolyDataNormals.h"<br>#include "vtkSmoothPolyDataFilter.h"<br>#include "vtkOutlineSource.h"<br>

=================================<br><br>Can someone give me some solutions (sorry if there are solutions already on the vtk users board)?&nbsp; Thank you very much! Have a nice day!<br><br>Best wishes<br>Leilei<br><br><hr>使用新一代 Windows Live Messenger 轻松交流和共享! <a href="http://im.live.cn/messenger.aspx">立刻下载!</a></div>


<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br></div></div><hr>把MSN装进手机,更多聊天乐趣等你挖掘! <a href="http://mobile.msn.com.cn/">立刻下载!</a></div>
</blockquote></div><br><br /><hr />更多热辣资讯尽在新版MSN首页! <a href='http://cn.msn.com/' target='_new'>立刻访问!</a></body>
</html>