<div>Hi, everyone</div>
<div>I am tring to compiling vtk 5.0 with VS 6 and CMake 2.2. I think compiling has been done successfully and vtk was installed in the </div>
<div>directory "C:/Program Files/VTK" and I am sure I have configured the directory rightly in Visual Studio 6.0 </div>
<div>but when I trying to use vtk 5.0 headers and libraries to compile the STL file reader example , I have gotten </div>
<div>lots of linkage errors like this :</div>
<div> </div>
<div>vtkRendering.lib(vtkOpenGLTexture.obj) : error LNK2001: unresolved external symbol <a href="mailto:__imp__glDeleteTextures@8">__imp__glDeleteTextures@8</a><br>vtkRendering.lib(vtkOpenGLImageActor.obj) : error LNK2001: unresolved external symbol
<a href="mailto:__imp__glDeleteTextures@8">__imp__glDeleteTextures@8</a><br>vtkRendering.lib(vtkWin32OpenGLRenderWindow.obj) : error LNK2001: unresolved external symbol <a href="mailto:__imp__glDeleteTextures@8">__imp__glDeleteTextures@8
</a><br>vtkRendering.lib(vtkOpenGLImageActor.obj) : error LNK2001: unresolved external symbol <a href="mailto:__imp__glDisable@4">__imp__glDisable@4</a><br>vtkRendering.lib(vtkWin32OpenGLRenderWindow.obj) : error LNK2001: unresolved external symbol
<a href="mailto:__imp__glDisable@4">__imp__glDisable@4</a><br> </div>
<div>So I think OpenGL32.lib may not be explicitly link in vtkRendering.lib. So I have added this lib( OpenGL32.lib) </div>
<div>in the STL reader example. Although the OpenGL linkage errors are eliminated , a link 2001 problem is thrown</div>
<div>here is the error:</div>
<div> </div>
<div>VTK.obj : error LNK2001: unresolved external symbol "public: static class vtkSTLReader * __cdecl vtkSTLReader::New(void)" (<a href="mailto:?New@vtkSTLReader@@SAPAV1@XZ">?New@vtkSTLReader@@SAPAV1@XZ</a>)</div>
<div> </div>
<div>it seems that vtkSTLReader::New method has not beed defined . However, I have found this function has already defined. </div>
<div> </div>
<div>Does anyone can help me?</div>
<div> </div>
<div>thanks much.</div>
<div> </div>
<div><br clear="all"><br>-- <br>Pang Shengyong <br><a href="mailto:berry_hust@hotmail.com">berry_hust@hotmail.com</a><br>Solidification Simulation Lab, Huazhong Univ. of Sci. & Tech. <br><br>(Tel)+86-27-87541922<br>
<br> </div>