<!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><FONT face=Arial size=2>Dear all: </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> I want to compile an
program under visual c++ 6 under window xp, I use the vtk4.0 libs compiled
manually. </FONT></DIV>
<DIV><FONT face=Arial size=2>When I run a program made myself, there is the
following lnk2001 errors invoked, I feel very strange why there could be
</FONT></DIV>
<DIV><FONT face=Arial size=2>these kind of lnk2001 err since both of the two
functions have been declared and defined in the two classes and the
</FONT></DIV>
<DIV><FONT face=Arial size=2>parameters and the return value of the functions
are both the same. </FONT></DIV>
<DIV><FONT face=Arial size=2>Here are the two functions: </FONT></DIV>
<DIV><FONT face=Arial size=2>
vtkTypeMacro(vtkGridTransform,vtkWarpTransform);<BR>defined for IsTypeOf
function and </FONT></DIV>
<DIV><FONT face=Arial size=2>inline void vtkMarchingSquares::SetValue(int i,
float value)<BR>{this->ContourValues->SetValue(i,value);}</FONT></DIV>
<DIV><FONT face=Arial size=2>for SetValue function, Why there will be the
unsolved external symbol function error info?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is the error information:</FONT></DIV>
<DIV><FONT face=Arial size=2> Linking...<BR> Creating library
Debug/test.lib and object Debug/test.exp<BR>test.obj : error LNK2001: unresolved
external symbol "__declspec(dllimport) public: void __thiscall
vtkMarchingSquares::SetValue(int,float)" (<A
href="mailto:__imp_?SetValue@vtkMarchingSquares@@QAEXHM@Z">__imp_?SetValue@vtkMarchingSquares@@QAEXHM@Z</A>)<BR>test.obj
: error LNK2001: unresolved external symbol "__declspec(dllimport) public:
static int __cdecl vtkGridTransform::IsTypeOf(char const *)" (<A
href="mailto:__imp_?IsTypeOf@vtkGridTransform@@SAHPBD@Z">__imp_?IsTypeOf@vtkGridTransform@@SAHPBD@Z</A>)<BR>Debug/test.exe
: fatal error LNK1120: 2 unresolved externals<BR>Error executing
link.exe.<BR></DIV></FONT></BODY></HTML>