FW: [vtkusers] Linking errors while setting up vtk4.2 in vc++

John Platt jcplatt at lineone.net
Fri Jan 9 17:56:38 EST 2004


Murali,

 

Have you checked that you are using the same C run-time in your cone
project as the vtk libraries. If you generate the project files using
CMake you should have no problems.

 

 

-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of Muralidharan Dhanakoti
Sent: 09 January 2004 14:16
To: vtkusers at vtk.org
Subject: [vtkusers] Linking errors while setting up vtk4.2 in vc++

 

Hello all,

 

When I attempt to run the example code "cone.cxx" (in the tutorials
directory) from vtk4.2 distribution I face some linking errors

 

I'am using VC++6.0 and I have given all the possible .lib files that
this project might be using (infact i even tried giving all the .lib
files in the lib directory of vtk42).

 

This is the linking error 

 

Cone.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
vtkRenderWindow::AddRenderer(class vtkRenderer *)"
(__imp_?AddRenderer at vtkRenderWindow@@QAEXPAVvtkRenderer@@@Z)

 

I had previously been using vtk3.2 where I had to just include the
vtkdll.lib and I dint have to go through this painful process.

 

Any thoughts will be greatly appreciated,

Murali.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040109/cdf87f99/attachment.htm>


More information about the vtkusers mailing list