[vtkusers] Attempting to Link

Samir Tannouri stannour at jewel.morgan.edu
Thu Sep 30 13:27:39 EDT 2004


Example/Tutorial Program
Cone.cxx will compile, but will not link.
The following errors arise:

--------------------Configuration: Cone - Win32 Debug--------------------
Compiling...
Cone.cxx
Linking...
Cone.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall vtkCamera::Azimuth(double)"
(__imp_?Azimuth at vtkCamera@@QAEXN at Z)
Cone.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: class vtkCamera * __thiscall
vtkRenderer::GetActiveCamera(void)"
(__imp_?GetActiveCamera at vtkRenderer@@QAEPAVvtkCamera@@XZ)
Cone.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static class vtkRenderWindow * __cdecl
vtkRenderWindow::New(void)" (__imp_?New at vtkRenderWindow@@SAPAV1 at XZ)
Cone.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall vtkRenderer::AddActor(class
vtkProp *)" (__imp_?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z)
Cone.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static class vtkRenderer * __cdecl
vtkRenderer::New(void)" (__imp_?New at vtkRenderer@@SAPAV1 at XZ)
Cone.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static class vtkActor * __cdecl
vtkActor::New(void)" (__imp_?New at vtkActor@@SAPAV1 at XZ)
Cone.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
vtkPolyDataMapper::SetInput(class vtkPolyData *)"
(__imp_?SetInput at vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z)
Cone.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: class vtkPolyData * __thiscall
vtkPolyDataSource::GetOutput(void)"
(__imp_?GetOutput at vtkPolyDataSource@@QAEPAVvtkPolyData@@XZ)
Cone.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static class vtkPolyDataMapper * __cdecl
vtkPolyDataMapper::New(void)" (__imp_?New at vtkPolyDataMapper@@SAPAV1 at XZ)
Cone.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static class vtkConeSource * __cdecl
vtkConeSource::New(void)" (__imp_?New at vtkConeSource@@SAPAV1 at XZ)
Debug/Cone.exe : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.

Cone.exe - 11 error(s), 0 warning(s)
-----------------------------------------------------------------


Please advise........

Thank You
Sam




More information about the vtkusers mailing list