[vtkusers] installing VTK on Linux - Help!

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Sat Sep 22 11:22:42 EDT 2001


hi,

>>>>> "MT" == M Thompson <mthompsn at science.uva.nl> writes:

    MT> $ gcc simple.o -L/usr/lib/vtk -lVTKPatented -lVTKImaging
    MT> -lVTKGraphics -lVTKCommon -lVTKContrib -lpthread -lGL
    MT> -L/usr/X11R6/lib -lX11 -lXt -lXext -o simple
    MT> /usr/lib/vtk/libVTKCommon.so: undefined reference to `dlerror'
    MT> /usr/lib/vtk/libVTKCommon.so: undefined reference to `dlclose'
    MT> /usr/lib/vtk/libVTKCommon.so: undefined reference to `dlopen'
    MT> /usr/lib/vtk/libVTKCommon.so: undefined reference to `dlsym'
    MT> collect2: ld returned 1 exit status

Add a -ldl to the list of linked libs and you should be fine.  The
symbols are all in libdl.so*

prabhu



More information about the vtkusers mailing list