[vtkusers] Help linking errors

Racha ramjoun at gmail.com
Thu Nov 11 21:09:10 EST 2010


Hello,
I am trying to compile the following example, I included all library and
still gives me the link errors:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Cube

Note  I m using visual studio 2008 9 , cmake 2.8.2 and VTK-5.6.0.
Any help would be greatly appreciated. Many Thanks.


Cone.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
public: void __thiscall vtkCamera::Azimuth(double)"
(__imp_?Azimuth at vtkCamera@@QAEXN at Z) referenced in function _main
2>Cone.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class vtkCamera * __thiscall
vtkRenderer::GetActiveCamera(void)"
(__imp_?GetActiveCamera at vtkRenderer@@QAEPAVvtkCamera@@XZ) referenced in
function _main
2>Cone.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class vtkRenderWindow * __cdecl
vtkRenderWindow::New(void)" (__imp_?New at vtkRenderWindow@@SAPAV1 at XZ)
referenced in function _main
2>Cone.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall vtkRenderer::AddActor(class
vtkProp *)" (__imp_?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z) referenced in
function _main
2>Cone.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class vtkRenderer * __cdecl
vtkRenderer::New(void)" (__imp_?New at vtkRenderer@@SAPAV1 at XZ) referenced in
function _main
2>Cone.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class vtkActor * __cdecl
vtkActor::New(void)" (__imp_?New at vtkActor@@SAPAV1 at XZ) referenced in function
_main
2>Cone.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class vtkAlgorithmOutput * __thiscall
vtkAlgorithm::GetOutputPort(void)"
(__imp_?GetOutputPort at vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@XZ) referenced
in function _main
2>Cone.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class vtkPolyDataMapper * __cdecl
vtkPolyDataMapper::New(void)" (__imp_?New at vtkPolyDataMapper@@SAPAV1 at XZ)
referenced in function _main
2>Cone.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class vtkConeSource * __cdecl
vtkConeSource::New(void)" (__imp_?New at vtkConeSource@@SAPAV1 at XZ) referenced
in function _main
2>C:\LocalProject\VTK\vtk-5.6.0\Examples\Tutorial\Step1\Cxx\build\Debug\Cone.exe
: fatal error LNK1120: 9 unresolved externals

-- 
View this message in context: http://vtk.1045678.n5.nabble.com/Help-linking-errors-tp3261387p3261387.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list