[vtkusers] Link errors on Win2000

Jon Johansson jon.johansson at ualberta.ca
Mon May 26 18:55:00 EDT 2003


Hi,

I have the latest prebuilt release of VTK, VTK4.2 dated Apr. 8, 2003
which I downloaded from http://www.vtk.org/get-software.php#release
today.

I'm trying to compile the Cone.cxx example from 
   C:\Program Files\vtk42\Examples\Tutorial\Step1\Cxx
and it seems to compile just fine, but linking fails with
the errors below.

I have include and library files in

   C:\Program Files\vtk42\include\vtk
   C:\Program Files\vtk42\lib\vtk

and these are included in my Visual Studio 6 project settings in
(I think) the correct spots. There doesn't seen to be any other
libraries for me to point at in the VTK directory structure that 
I have. 

If anyone sees my mistake could you let me know?

Thank you,
Jon.

--------------------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)



-- 
Jon I Johansson             *  Research Computing Support
jon.johansson at ualberta.ca   *  Computing and Network Services
Tel.: (780) 492-9304        *  University of Alberta
Fax.: (780) 492-1729        *  Edmonton, Alberta, CANADA





More information about the vtkusers mailing list