[vtkusers] linking errors - suse linux 7.2 and the current re lease of vtk

Blezek, Daniel J (CRD) blezek at crd.ge.com
Tue Sep 4 08:48:02 EDT 2001


The most immediate thing you can do is change this:

> bash-2.05# c++ -o vtk vtk_test.cpp -lVTKCommon -lVTKGraphics -lGL

to:

> bash-2.05# c++ -o vtk vtk_test.cpp -lVTKCommon -lVTKGraphics -lGL -lpthread -ldl 

-dan


> Hello!
> I am trying to compile an example-file from the public.kitware -
> website. Whilst doing this the linker reports following error:
> 
> 
> bash-2.05# c++ -o vtk vtk_test.cpp -lVTKCommon -lVTKGraphics -lGL
> /usr/local/lib/libVTKCommon.so: undefined reference to `dlerror'
> /usr/local/lib/libVTKCommon.so: undefined reference to 
> `pthread_create'
> /usr/local/lib/libVTKCommon.so: undefined reference to `dlclose'
> /usr/local/lib/libVTKCommon.so: undefined reference to `dlopen'
> /usr/local/lib/libVTKCommon.so: undefined reference to `dlsym'
> /usr/local/lib/libVTKCommon.so: undefined reference to `pthread_join'
> collect2: ld returned 1 exit status
> 
> bash-2.05# uname -a                                        
> Linux linux 2.4.4-64GB-SMP #1 SMP Wed May 16 01:20:45 GMT 2001 i686
> unknown
> Suse Linux 7.2
> 
> Does anybody know this problem. I built my vtk-lib with the following
> commands:
> 
> ./configure --with-shared
> make
> make install
> I edited the user.make file properly.
> 
> 
> Thanx in advance
> rudi
> 
> _______________________________________________
> 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




More information about the vtkusers mailing list