[vtkusers] linker error
Jens Frederich
jfrederich at gmail.com
Mon Sep 19 17:02:57 EDT 2005
Hi all,
I had build vtk (cvs version) as static libs on linux with gcc 3.3.5
I had wrote a little testapp.
int main(void)
{
// create sphere geometry
vtkSphereSource *sphere = vtkSphereSource::New();
sphere->SetRadius(1.0);
sphere->SetThetaResolution(18);
sphere->SetPhiResolution(18);
sphere->Delete();
return 0;
}
Then, I would build this program, with
gcc testapplication.cpp -L/home/jf/work/pace/3rdparty/lib
-I/home/jf/work/pace/3rdparty/include/vtk -Wno-deprecated -lstdc++
-lvtkCommon -lvtkDICOMParser -lvtkFiltering -lvtkGenericFiltering
-lvtkGraphics -lvtkHybrid -lvtkIO -lvtkImaging -lvtkMPEG2Encode
-lvtkNetCDF -lvtkParallel -lvtkRendering -lvtkVolumeRendering
-lvtkWidgets -lvtkexoIIc -lvtkexpat -lvtkfreetype -lvtkftgl -lvtkjpeg
-lvtkpng -lvtksys -lvtktiff -lvtkzlib
But I become follow error messages:
I don't know, why.
Jens
.......
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0xd2):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStreamWrapper::operator<<(char const*)'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0xe3):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStreamWrapper::operator<<(char const*)'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0xef):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStreamWrapper::operator<<(void*)'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0x100):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStreamWrapper::operator<<(char const*)'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0x111):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStreamWrapper::operator<<(char const*)'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0x123):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStreamWrapper::operator<<(int)'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0x134):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStreamWrapper::operator<<(char const*)'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0x13c):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStrStreamWrapper::str()'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0x144):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOutputWindowDisplayDebugText(char const*)'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0x14c):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStrStreamWrapper::rdbuf()'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0x15a):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStrStreamWrapper::freeze(int)'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0x162):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStrStreamWrapper::~vtkOStrStreamWrapper
[in-charge]()'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSource22GetLatLongTessellationEv+0x176):
In function `vtkSphereSource::GetLatLongTessellation()':
: undefined reference to `vtkOStrStreamWrapper::~vtkOStrStreamWrapper
[in-charge]()'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSourceD1Ev+0x13):
In function `vtkSphereSource::~vtkSphereSource [in-charge]()':
: undefined reference to `vtkPolyDataAlgorithm::~vtkPolyDataAlgorithm
[not-in-charge]()'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.t._ZN15vtkSphereSourceD0Ev+0x16):
In function `vtkSphereSource::~vtkSphereSource [in-charge
deleting]()':
: undefined reference to `vtkPolyDataAlgorithm::~vtkPolyDataAlgorithm
[not-in-charge]()'
/home/jf/work/pace/3rdparty/lib/libvtkGraphics.a(vtkSphereSource.o)(.gnu.linkonce.r._ZTI15vtkSphereSource+0x8):
undefined reference to `typeinfo for vtkPolyDataAlgorithm'
collect2: ld returned 1 exit status
More information about the vtkusers
mailing list