[vtkusers] undefined smbols in linker: ie. vtkCellArray::GetNextCell

Martin Dunschen zabaione at uk2.net
Sun Jan 11 08:14:57 EST 2004


Thanks for the help with my preivous compilation problem, I could build 
all libs successfully, and I can run TimeRenderer.


But now my executable does not link, find below a dump of the linker.
(I use Mac OS X Developer Tools's Project Builder to build my project, 
the compiler is GNU, I guess g++2 is really the GNU linker?)

Assuming the problem might have to do with my libs not at the right 
place or something, I tried to confirm that the undefined symbols in 
fact have a source associated to it.
  But I am surprised to find nowhere in the source code an 
implementation for vtkCellArray::GetNextCell, I would have expected 
this in
vtkCellArray.cxx, but I could not find it anywhere. Is it then possible 
that the linker error is correct and the symbol does not exist?

Which source code version should I use? (Remember, with 
VTK-4.2-LatestRelease.tar.gz I had compilation problems...)

Anybody using Mac OS X libraries of VTK for a project who has more 
success?

Is this because I use an 'unstable' latest version?

StandaloneExecutable.LinkUsingFileList /Users/martin/Development/CHook 
Folder/CHook/build/CHook
     /usr/bin/g++2  -o "/Users/martin/Development/CHook 
Folder/CHook/build/CHook"  "-L/Users/martin/Development/CHook 
Folder/CHook/build" "-L/Users/martin/Development/CHook 
Folder/osxBin/bin"  "-F/Users/martin/Development/CHook 
Folder/CHook/build"  -filelist "/Users/martin/Development/CHook 
Folder/CHook/build/CHook.build/CHook.build/Objects-normal/LinkFileList" 
  "-arch" "ppc" "-Wl,-no_arch_warnings"   "-lstdc++" "-framework" 
"Python" "-lvtkCommon" "-lvtkexpat" "-lvtkFiltering" "-lvtkfreetype" 
"-lvtkftgl" "-lvtkGraphics" "-lvtkImaging" "-lvtkIO" "-lvtkjpeg" 
"-lvtkpng" "-lvtkRendering" "-lvtktiff" "-lvtkzlib"
/usr/bin/ld: Undefined symbols:
_GetNextCell__12vtkCellArrayRiRPi
_GetNumberOfCells__12vtkCellArray
_GetPolys__11vtkPolyData
_InitTraversal__12vtkCellArray
_InsertCellPoint__12vtkCellArrayi
_InsertNextCell__12vtkCellArrayi
_InsertPoint__9vtkPointsidn2
_New__11vtkPolyData
_New__12vtkCellArray
_New__9vtkPoints
_SetLines__11vtkPolyDataP12vtkCellArray
_AddActor__11vtkRendererP7vtkProp
_GetActiveCamera__11vtkRenderer
_GetOutput__17vtkPolyDataSource
_GetProperty__8vtkActor
_New__11vtkRenderer
_New__12vtkSTLReader
_New__15vtkRenderWindow
_New__17vtkPolyDataMapper
_New__25vtkRenderWindowInteractor
_New__8vtkActor
_SetColor__11vtkPropertyfn2
_SetInput__17vtkPolyDataMapperP11vtkPolyData
_SetRenderWindow__25vtkRenderWindowInteractorP15vtkRenderWindow
_Zoom__9vtkCamerad
...failed StandaloneExecutable.LinkUsingFileList 
/Users/martin/Development/CHook Folder/CHook/build/CHook ...




More information about the vtkusers mailing list