[vtkusers] linking problems
Torsten Wirz
wirz at ifht.rwth-aachen.de
Mon Jul 12 07:21:43 EDT 2004
hi all,
I´m a newbie user of the VTK library and have problems by linking the
Medical1.cxx test programm with the g++ compiler.
g++ -I/usr/include/vtk -L/usr/lib/vtk Medical1.cxx
The compilation is no problem, but when he starts linking the following errors
occure:
/tmp/cc0mHzj4.o(.text+0x6c): In function `main':
: undefined reference to `vtkRenderer::New()'
------- snip -----------
these message for each vtk-memberfunktion.
I´m using Suse Linux 8.1 and the dynamic libraries are available:
gdpc27:/home/wirz # ldconfig -p | grep vtk
libvtkzlib.so (libc6) => /usr/lib/vtk/libvtkzlib.so
libvtktiff.so (libc6) => /usr/lib/vtk/libvtktiff.so
libvtkpng.so (libc6) => /usr/lib/vtk/libvtkpng.so
libvtkjpeg.so (libc6) => /usr/lib/vtk/libvtkjpeg.so
libvtkftgl.so (libc6) => /usr/lib/vtk/libvtkftgl.so
libvtkfreetype.so (libc6) => /usr/lib/vtk/libvtkfreetype.so
libvtkexpat.so (libc6) => /usr/lib/vtk/libvtkexpat.so
------- snip ------------
I don´t now why the linker can not find libraries. Does anybody have an idea?
thanx all in advance
best regards
Torsten
--
----------------------------------------------
Dipl.-Ing. Torsten Wirz
Institute for High Voltage Technology
University of Technology RWTH-Aachen
Schinkelstrasse 2, SG 104
D-52056 Aachen
wirz at ifht.rwth-aachen.de
http://www.ifht.rwth-aachen.de
Phone: ++49 241 80 94910
Fax: ++49 241 80 92135
----------------------------------------------
More information about the vtkusers
mailing list