[vtkusers] C++ link error about vtkMarchingCubes

Denny husthj at yahoo.com
Mon Apr 8 23:40:58 EDT 2002


Hi,all
  Here is a section code of my programe:

vtkMarchingCubes *skin = vtkMarchingCubes::New();
skin->SetInput(v16->GetOutput());
int contourNum=10;
skin->GenerateValues(contourNum,900,1100);

I have compiled vtkPented myself and put
vtkPatented.lib of debug version in the lib folder.
Project settings have been set correctly.But when I
complie with this code, a error message popup

Linking...
jkl.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
vtkMarchingCubes::GenerateValues(int,float,float)"
(__imp_?GenerateValues at vtkMarchingCubes@@QAEXHMM at Z)
jkl.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static class
vtkMarchingCubes * __cdecl
vtkMarchingCubes::New(void)"
(__imp_?New at vtkMarchingCubes@@SAPAV1 at XZ)
Debug/jkl.exe : fatal error LNK1120: 2 unresolved
externals.

Why this could happen? 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



More information about the vtkusers mailing list