[vtkusers] Linking error during x64 VTK 5.8.0 compile
David Doria
daviddoria at gmail.com
Fri May 18 08:06:22 EDT 2012
On Fri, May 18, 2012 at 6:01 AM, jimmigoo <jimmigoo at gmail.com> wrote:
> Hi everybody!
> I've just changed VTK version from 5.5.0 to 5.8.0.
> I'm trying to compile my development solution on Visual Studio 2010,
> and I'm in trouble with x64 ( _X_M64 ) Platform Solution.
> I received a few linking error like these:
>
> 2>VTK_LIB.lib(vtkCleanArrays.obj) : error LNK2001: unresolved external
> symbol "public: int __cdecl vtkFieldData::GetNumberOfTuples(void)"
> (?GetNumberOfTuples at vtkFieldData@@QEAAHXZ)
> 2>VTK_LIB.lib(vtkGenericGeometryFilter.obj) : error LNK2019: unresolved
> external symbol "public: void __cdecl vtkIdList::SetNumberOfIds(int)"
> (?SetNumberOfIds at vtkIdList@@QEAAXH at Z) referenced in function "protected:
> virtual int __cdecl vtkGenericGeometryFilter::RequestData(class
> vtkInformation *,class vtkInformationVector * *,class vtkInformationVector
> *)"
> (?RequestData at vtkGenericGeometryFilter@@MEAAHPEAVvtkInformation@
> @PEAPEAVvtkInformationVector@@PEAV3@@Z)
> 2>VTK_LIB.lib(vtkGenericGeometryFilter.obj) : error LNK2019: unresolved
> external symbol "public: void __cdecl vtkPolyData::Allocate(int,int)"
> (?Allocate at vtkPolyData@@QEAAXHH at Z) referenced in function "protected:
> virtual int __cdecl vtkGenericGeometryFilter::RequestData(class
> vtkInformation *,class vtkInformationVector * *,class vtkInformationVector
> *)"
> (?RequestData at vtkGenericGeometryFilter@@MEAAHPEAVvtkInformation@
> @PEAPEAVvtkInformationVector@@PEAV3@@Z)
>
> All VTK libraries ( vtkCommon.lib, etc.. ) are correctly added on library
> dependencies.
> All VTK header directories are correctly added on INCLUDE directory on
> C/C++
> option property.
>
> The strange fact is that everything links well and application runs using
> Win32 platform.
>
> So, I really like to know how to solve this strange fact, it's driving me
> crazy!
>
> I'm looking for your reply,
> regards,
>
> Francesco
>
You should create the project with CMake. It will take care of this for
you. As a spot check, are you including vtkGenericFiltering.lib? That is
the library that vtkGenericGeometryFilter should be in.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120518/40050596/attachment.htm>
More information about the vtkusers
mailing list