[vtkusers] Vtk Visual Studio 7 .NET Linking warning

Nacho Larrabide nacho at lncc.br
Fri Sep 17 10:28:16 EDT 2004


Hi everybody,

   I send a message a few days ago on this subject but I've got no
   response yet and I still couldn't solve this problem. I'm trying to
   staticly link vtk on Visual Developer Studio 7 .NET and I get this
   linking warnings and errors:

   vtktiff.lib(zlib.res) : fatal error LNK1241: resource file vtkzlib.lib(zlib.res) already specified

   [...]
   vtkCommon.lib(vtkLargeInteger.obj) : warning LNK4006: "public: char __thiscall vtkLargeInteger::CastToChar(void)const " (?CastToChar at vtkLargeInteger@@QBEDXZ) already defined in vtkFiltering.lib(vtkLargeInteger.obj); second definition ignored
   vtkCommon.lib(vtkLargeInteger.obj) : warning LNK4006: "public: short __thiscall vtkLargeInteger::CastToShort(void)const " (?CastToShort at vtkLargeInteger@@QBEFXZ) already defined in vtkFiltering.lib(vtkLargeInteger.obj); second definition ignored
   vtkCommon.lib(vtkLargeInteger.obj) : warning LNK4006: "public: int __thiscall vtkLargeInteger::CastToInt(void)const " (?CastToInt at vtkLargeInteger@@QBEHXZ) already defined in vtkFiltering.lib(vtkLargeInteger.obj); second definition ignored
   vtkCommon.lib(vtkLargeInteger.obj) : warning LNK4006: "public: class vtkLargeInteger & __thiscall vtkLargeInteger::operator/=(class vtkLargeInteger const &)" (??_0vtkLargeInteger@@QAEAAV0 at ABV0@@Z) already defined in vtkFiltering.lib(vtkLargeInteger.obj); second definition ignored
   vtkCommon.lib(vtkLargeInteger.obj) : warning LNK4006: "public: class vtkLargeInteger __thiscall vtkLargeInteger::operator/(class vtkLargeInteger const &)const " (??KvtkLargeInteger@@QBE?AV0 at ABV0@@Z) already defined in vtkFiltering.lib(vtkLargeInteger.obj); second definition ignored
   [...]
   
   This last warning I get it many times (like I'm including or
   linking something too times).
   May be I'm not configuring CMake properly or there is something to
   do in VS 7 that I'm not doing. Do I have to set the static link on
   CMake or in VStudio? How do I do this?.

   Please help me. Thanks.

   Nacho
   
----------------------------------------------------- 
Nacho Larrabide
Rua Getulio Vargas 333 - Quitandinha - CEP: 25651-070
Petropolis - RJ - Brasil

Tel: +54 24 2233-6137  - Fax: +54 24 2233-6167

mailto:nacho at lncc.br
-----------------------------------------------------




More information about the vtkusers mailing list