[vtkusers] 64-Bit Linking Error in Windows 7 Professional 64-Bit

Chai Kian Ping ckianpin at dso.org.sg
Thu Feb 23 02:00:30 EST 2012


Hello,

I am a new user to VTK, and my usage of the library is through the Point Cloud Library (PCL) v1.4.0.

I have built both the 32-bit and 64-bit (static) versions of the library. My program works with the 32-bit version of the libraries. However, the 64-bit version of VTK and PCL does not link with my program. Here are the specifics:

- MSVC 2010 x64 Compiler (for all libraries and my code).
- Windows 7 Professional 64-Bit Platform
- VTK is statically linked

I have included all the .lib files from vtk for the linking.

4 linking errors are observed (partially extracted):
error LNK2001: unresolved external symbol "public: void __cdecl vtkDataArrayTemplate<float>::SetArray(float *,int,int,int)" (?SetArray@?$vtkDataArrayTemplate at M@@QEAAXPEAMHHH at Z)
error LNK2001: unresolved external symbol "private: void __cdecl pcl::visualization::PCLVisualizer::updateCells(class vtkSmartPointer<class vtkIdTypeArray> &,class vtkSmartPointer<class vtkIdTypeArray> &,int)" (?updateCells at PCLVisualizer@visualization at pcl@@AEAAXAEAV?$vtkSmartPointer at VvtkIdTypeArray@@@@0H at Z)
error LNK2001: unresolved external symbol "public: void __cdecl vtkDataArrayTemplate<unsigned char>::SetArray(unsigned char *,int,int,int)" (?SetArray@?$vtkDataArrayTemplate at E@@QEAAXPEAEHHH at Z)
error LNK2001: unresolved external symbol "public: void __cdecl vtkCellArray::SetCells(int,class vtkIdTypeArray *)" (?SetCells at vtkCellArray@@QEAAXPHEAVvtkIdTypeArray@@@Z)

Here is the command line for linking (certain portions are replaced with a "macro" instead":
/OUT "%OUTPUT_FILE_PATH_AND_NAME%.exe" /VERBOSE:Lib /INCREMENTAL:NO /NOLOGO /LIBPATH:"%LIBPATH%" "pcl_visualization.lib" "pcl_common.lib" "vtkCharts.lib" "vtkCommon.lib" "vtkDICOMParser.lib" "vtkFiltering.lib" "vtkGenericFiltering.lib" "vtkGeovis.lib" "vtkGraphics.lib" "vtkHybrid.lib" "vtkIO.lib" "vtkImaging.lib" "vtkInfovis.lib" "vtkNetCDF.lib" "vtkNetCDF_cxx.lib" "vtkViews.lib" "vtkVolumeRendering.lib" "vtkWidgets.lib" "vtkalglib.lib" "vtkexollc.lib" "vtkexpat.lib" "vtkfreetype.lib" "vtkftgl.lib" "vtkhdf5.lib" "vtkjpeg.lib" "vtklibxml2.lib" "vtkmetaio.lib" "vtkpng.lib" "vtkproj4.lib" "vtksqlite.lib" "vtksys.lib" "vtktiff.lib" "vtkverdict.lib" "vtkzlib.lib" "vtkRendering.lib" "opengl32.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /MANIFEST /ManifestFile:"%MANIFEST_FILE_NAME% /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"%PDB_FILE% /OPT:REF /OPT:ICF /PGF:"%PGD_FILE%" /LTCG /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ERRORREPORT:QUEUE

Thank you in advance.

Regards,
Stephen Chai Kian Ping
Senior Member of Technical Staff
DSO National Laboratories



DSO 40th Anniversary - Celebrating 40 years of Serious Fun. 1972 - 2012
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120223/f1ecbf4b/attachment.htm>


More information about the vtkusers mailing list