[vtkusers] Error when using vtk static libs!!!

6dgis at 163.com 6dgis at 163.com
Sat Jul 30 07:56:24 EDT 2005


Hi, all
    I am able to compile and use successfully when I use shared libraries of vtk for one of my projects. But when I 
try to use static libraries I get linking errors.
	The errors are as follows:
Linking...
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderer::ResetCameraClippingRange(void)" (__imp_?ResetCameraClippingRange at vtkRenderer@@QAEXXZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkCamera::Dolly(double)" (__imp_?Dolly at vtkCamera@@QAEXN at Z) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderer::ResetCamera(void)" (__imp_?ResetCamera at vtkRenderer@@QAEXXZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderer::SetActiveCamera(class vtkCamera *)" (__imp_?SetActiveCamera at vtkRenderer@@QAEXPAVvtkCamera@@@Z) referenced in function _main
Medical1.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
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkCamera::ComputeViewPlaneNormal(void)" (__imp_?ComputeViewPlaneNormal at vtkCamera@@QAEXXZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkCamera::SetFocalPoint(double,double,double)" (__imp_?SetFocalPoint at vtkCamera@@QAEXNNN at Z) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkCamera::SetPosition(double,double,double)" (__imp_?SetPosition at vtkCamera@@QAEXNNN at Z) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkCamera::SetViewUp(double,double,double)" (__imp_?SetViewUp at vtkCamera@@QAEXNNN at Z) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkCamera * __cdecl vtkCamera::New(void)" (__imp_?New at vtkCamera@@SAPAV1 at XZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkProperty::SetColor(float,float,float)" (__imp_?SetColor at vtkProperty@@QAEXMMM at Z) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class vtkProperty * __thiscall vtkActor::GetProperty(void)" (__imp_?GetProperty at vtkActor@@QAEPAVvtkProperty@@XZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkOutlineFilter * __cdecl vtkOutlineFilter::New(void)" (__imp_?New at vtkOutlineFilter@@SAPAV1 at XZ) referenced in function _main
Medical1.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
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)" (__imp_?SetInput at vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z) referenced in function _main
Medical1.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
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkPolyDataNormals * __cdecl vtkPolyDataNormals::New(void)" (__imp_?New at vtkPolyDataNormals@@SAPAV1 at XZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class vtkPolyData * __thiscall vtkPolyDataSource::GetOutput(void)" (__imp_?GetOutput at vtkPolyDataSource@@QAEPAVvtkPolyData@@XZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkContourFilter::SetValue(int,float)" (__imp_?SetValue at vtkContourFilter@@QAEXHM at Z) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkContourFilter * __cdecl vtkContourFilter::New(void)" (__imp_?New at vtkContourFilter@@SAPAV1 at XZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkWriter::Update(void)" (__imp_?Update at vtkWriter@@QAEXXZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkDataSetWriter::SetInput(class vtkDataSet *)" (__imp_?SetInput at vtkDataSetWriter@@QAEXPAVvtkDataSet@@@Z) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class vtkImageData * __thiscall vtkImageSource::GetOutput(void)" (__imp_?GetOutput at vtkImageSource@@QAEPAVvtkImageData@@XZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkDataSetWriter * __cdecl vtkDataSetWriter::New(void)" (__imp_?New at vtkDataSetWriter@@SAPAV1 at XZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkVolume16Reader::SetDataByteOrderToLittleEndian(void)" (__imp_?SetDataByteOrderToLittleEndian at vtkVolume16Reader@@QAEXXZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkVolume16Reader * __cdecl vtkVolume16Reader::New(void)" (__imp_?New at vtkVolume16Reader@@SAPAV1 at XZ) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow *)" (__imp_?SetRenderWindow at vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z) referenced in function _main
Medical1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderWindowInteractor * __cdecl vtkRenderWindowInteractor::New(void)" (__imp_?New at vtkRenderWindowInteractor@@SAPAV1 at XZ) referenced in function _main
Medical1.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
Medical1.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
Debug/Medical.exe : fatal error LNK1120: 30 unresolved externals

Build log was saved at "file://e:\hjf\sourceforge\Vtk\VTK_Test\Medical\Debug\BuildLog.htm"
Medical - 31 error(s), 0 warning(s)


---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped

Any help would be appreciated, thank you in advance!
 				

        6dgis
        6dgis at 163.com
          2005-07-30


More information about the vtkusers mailing list