[vtkusers] Link errors on Win2000

Todd Schneider tschnei1 at nd.edu
Tue May 27 11:06:43 EDT 2003


Hey everyone, I have this exact same problem, running both VC++ 6.0 and
VC++ 7- any help would be greatly appreciated.

Todd Schneider

-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com] On Behalf Of Jon Johansson
Sent: Monday, May 26, 2003 5:55 PM
To: vtkusers at public.kitware.com
Subject: [vtkusers] Link errors on Win2000

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


_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list