[vtkusers] problem building vtk on SUSE linux 7.3

Berk Geveci berkgeveci at hotmail.com
Tue Nov 6 09:46:27 EST 2001


You probably added -lvli (vli seems to be a c++ library) to your C 
compilation flags. You can not link against a C++ library with gcc unless 
you add the stdc++ library to the link line. Remove -lvli from your C 
compilation flags and add it to C++ link flags.

-Berk

>From: <fabian.haerle at web.de>
>To: "VTK users mailing list" <vtkusers at public.kitware.com>
>Subject: [vtkusers] problem building vtk on SUSE linux 7.3
>Date: Tue, 6 Nov 2001 15:20:25 +0100
>
>Hi,
>
>I just upgraded my machine from SUSE 7.0 to SUSE 7.3.
>The ./config script seems to confuse the compiler settings - it doesn't 
>link object files using g++. Therefore no iostream functions can be found. 
>This seems to occur with the vtk *.c-files.
>
>Do you know, how to solve this problem?
>
>Fabian
>
>p.s. the compiler/linker output:
>
>c++ -o targets ./targets.cxx ./makedepend.cxx
>cd wrap;        make - all
>make[1]: Entering directory `/usr/home/fabian/vtk/wrap'
>gcc -O2 -D__NO_MATH_INLINES -lvli   -fPIC  -I. -I/usr/lib/tk8.3 
>-I/usr/local/lib/tcl8.3 -I/usr/X11R6/include -I./../graphics 
>-DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../contrib 
>-DVTK_USE_CONTRIB  -I. -c -o vtkParse.o ./vtkParse.tab.c
>gcc: -lvli: linker input file unused since linking not done
>gcc -O2 -D__NO_MATH_INLINES -lvli   -fPIC  -I. -I/usr/lib/tk8.3 
>-I/usr/local/lib/tcl8.3 -I/usr/X11R6/include -I./../graphics 
>-DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../contrib 
>-DVTK_USE_CONTRIB  -I. -o vtkParseJava ./vtkParseJava.c vtkParse.o
>/usr/local/lib/libvli.so: undefined reference to 
>`istream::operator>>(unsigned int &)'
>/usr/local/lib/libvli.so: undefined reference to `cerr'
>/usr/local/lib/libvli.so: undefined reference to `iostream::ios virtual 
>table'
>/usr/local/lib/libvli.so: undefined reference to 
>`ostrstream::~ostrstream(void)'
>/usr/local/lib/libvli.so: undefined reference to `fstreambase::close(void)'
>/usr/local/lib/libvli.so: undefined reference to `endl(ostream &)'
>/usr/local/lib/libvli.so: undefined reference to 
>`ostream::operator<<(char)'
>/usr/local/lib/libvli.so: undefined reference to `ios virtual table'
>/usr/local/lib/libvli.so: undefined reference to `istream::operator>>(char 
>*)'
>/usr/local/lib/libvli.so: undefined reference to 
>`ostream::operator<<(double)'
>/usr/local/lib/libvli.so: undefined reference to 
>`fstreambase::fstreambase(int)'
>/usr/local/lib/libvli.so: undefined reference to `ostream::flush(void)'
>/usr/local/lib/libvli.so: undefined reference to `istream::get(char &)'
>/usr/local/lib/libvli.so: undefined reference to `istream::operator>>(int 
>&)'
>/usr/local/lib/libvli.so: undefined reference to `istream::ios virtual 
>table'
>/usr/local/lib/libvli.so: undefined reference to `ostream::operator<<(char 
>const *)'
>/usr/local/lib/libvli.so: undefined reference to `fstream::ios virtual 
>table'
>/usr/local/lib/libvli.so: undefined reference to `dec(ios &)'
>/usr/local/lib/libvli.so: undefined reference to `ostrstream::ios virtual 
>table'
>/usr/local/lib/libvli.so: undefined reference to 
>`strstreambuf::init_dynamic(void *(*)(unsigned int), void (*)(void *), 
>int)'
>/usr/local/lib/libvli.so: undefined reference to `istream::read(char *, 
>int)'
>/usr/local/lib/libvli.so: undefined reference to 
>`istrstream::istrstream(int, char const *, int)'
>/usr/local/lib/libvli.so: undefined reference to 
>`istrstream::~istrstream(void)'
>/usr/local/lib/libvli.so: undefined reference to `istream::operator>>(float 
>&)'
>/usr/local/lib/libvli.so: undefined reference to 
>`streambuf::~streambuf(void)'
>/usr/local/lib/libvli.so: undefined reference to `ostream::operator<<(int)'
>/usr/local/lib/libvli.so: undefined reference to 
>`ostream::operator<<(unsigned int)'
>/usr/local/lib/libvli.so: undefined reference to `ostream::ios virtual 
>table'
>/usr/local/lib/libvli.so: undefined reference to `istream::peek(void)'
>/usr/local/lib/libvli.so: undefined reference to `fstreambase::open(char 
>const *, int, int)'
>/usr/local/lib/libvli.so: undefined reference to 
>`streambuf::streambuf(int)'
>/usr/local/lib/libvli.so: undefined reference to `istream::tellg(void)'
>/usr/local/lib/libvli.so: undefined reference to `ostream::write(char const 
>*, int)'
>/usr/local/lib/libvli.so: undefined reference to `istream::seekg(long 
>long)'
>/usr/local/lib/libvli.so: undefined reference to `strstreambuf::str(void)'
>/usr/local/lib/libvli.so: undefined reference to 
>`streambuf::sputbackc(char)'
>/usr/local/lib/libvli.so: undefined reference to `hex(ios &)'
>/usr/local/lib/libvli.so: undefined reference to `strstreambuf virtual 
>table'
>/usr/local/lib/libvli.so: undefined reference to 
>`strstreambuf::pcount(void)'
>/usr/local/lib/libvli.so: undefined reference to `strstreambase::ios 
>virtual table'
>collect2: ld returned 1 exit status
>make[1]: *** [vtkParseJava] Error 1
>make[1]: Leaving directory `/usr/home/fabian/vtk/wrap'
>make: *** [build_wrap] Error 2
>
>______________________________________________________________
>WEB.DE Horoskop - Gewinnen Sie einen Stern!
>http://horoskop.web.de
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




More information about the vtkusers mailing list