<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hi,</DIV>
<DIV> Thanks for your help.</DIV>
<DIV> I got the answer. It is my fault. I compile the VTK
static libraries myself but use the header files from vtk40Cpp.exe. The key
problem is the vtkConfigure.h. That file from vtk40Cpp.exe is for VTK shared
libraries. After I replace that file with the file output from CMake, there is
no problem in compiling and linking.</DIV>
<DIV> </DIV>
<DIV>Best Regards,</DIV>
<DIV>Shade</DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 9pt 宋体">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 9pt 宋体; font-color: black"><B>From:</B>
<A title=shade_cn@yahoo.com href="mailto:shade_cn@yahoo.com">Shade</A> </DIV>
<DIV style="FONT: 9pt 宋体"><B>To:</B> <A title=vtkusers@public.kitware.com
href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</A>
</DIV>
<DIV style="FONT: 9pt 宋体"><B>Sent:</B> Friday, March 22, 2002 12:19 PM</DIV>
<DIV style="FONT: 9pt 宋体"><B>Subject:</B> [vtkusers] VTK4.0 link problem</DIV>
<DIV><BR></DIV>
<DIV>Hello All,</DIV>
<DIV> </DIV>
<DIV> I have compiled VTK4.0 in static library format. But
when I link them in my application. There are so many warnings and errors. It
seems only vtkCommon.lib and vtkFiltering.lib have effect on my App, but
vtkImaging.lib, vtkGraphics.lib and vtkRendering.lib do nothing for my
application.</DIV>
<DIV> The link log is as following and I also attach the
whole link.log file in this mail. Hope somebody can give me some hints, thanks
a lot.</DIV>
<DIV>============================================================</DIV>
<DIV>LINK : warning LNK4049: locally defined symbol ""public: static void
__cdecl vtkObjectFactory::UnRegisterAllFactories(void)" (<A
href="mailto:?UnRegisterAllFactories@vtkObjectFactory@@SAXXZ">?UnRegisterAllFactories@vtkObjectFactory@@SAXXZ</A>)"
imported<BR>vtkMFCImageView.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static class vtkWin32OpenGLImageWindow *
__cdecl vtkWin32OpenGLImageWindow::New(void)" (<A
href="mailto:__imp_?New@vtkWin32OpenGLImageWindow@@SAPAV1@XZ">__imp_?New@vtkWin32OpenGLImageWindow@@SAPAV1@XZ</A>)<BR>===========================================================</DIV>
<DIV> </DIV>
<DIV>Best Regards,</DIV>
<DIV>Shade</DIV></BLOCKQUOTE></BODY></HTML>