<html><div style='background-color:'><DIV>
<P>You need to link against pthread and dl libraries. Add -lpthread -ldl to your compile line.<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: root <RUDI@YEAH.CO.AT>
<DIV></DIV>>To: VTKUsers <VTKUSERS@PUBLIC.KITWARE.COM>
<DIV></DIV>>Subject: [vtkusers] linking errors - suse linux 7.2 and the current release of vtk
<DIV></DIV>>Date: Mon, 03 Sep 2001 03:31:40 +0200
<DIV></DIV>>
<DIV></DIV>>Hello!
<DIV></DIV>>I am trying to compile an example-file from the public.kitware -
<DIV></DIV>>website. Whilst doing this the linker reports following error:
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>bash-2.05# c++ -o vtk vtk_test.cpp -lVTKCommon -lVTKGraphics -lGL
<DIV></DIV>>/usr/local/lib/libVTKCommon.so: undefined reference to `dlerror'
<DIV></DIV>>/usr/local/lib/libVTKCommon.so: undefined reference to `pthread_create'
<DIV></DIV>>/usr/local/lib/libVTKCommon.so: undefined reference to `dlclose'
<DIV></DIV>>/usr/local/lib/libVTKCommon.so: undefined reference to `dlopen'
<DIV></DIV>>/usr/local/lib/libVTKCommon.so: undefined reference to `dlsym'
<DIV></DIV>>/usr/local/lib/libVTKCommon.so: undefined reference to `pthread_join'
<DIV></DIV>>collect2: ld returned 1 exit status
<DIV></DIV>>
<DIV></DIV>>bash-2.05# uname -a
<DIV></DIV>>Linux linux 2.4.4-64GB-SMP #1 SMP Wed May 16 01:20:45 GMT 2001 i686
<DIV></DIV>>unknown
<DIV></DIV>>Suse Linux 7.2
<DIV></DIV>>
<DIV></DIV>>Does anybody know this problem. I built my vtk-lib with the following
<DIV></DIV>>commands:
<DIV></DIV>>
<DIV></DIV>>./configure --with-shared
<DIV></DIV>>make
<DIV></DIV>>make install
<DIV></DIV>>I edited the user.make file properly.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Thanx in advance
<DIV></DIV>>rudi
<DIV></DIV>>
<DIV></DIV>>_______________________________________________
<DIV></DIV>>This is the private VTK discussion list.
<DIV></DIV>>Please keep messages on-topic. Check the FAQ at:
<DIV></DIV>>Follow this link to subscribe/unsubscribe:
<DIV></DIV>>http://public.kitware.com/mailman/listinfo/vtkusers
<DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html>