[Insight-developers] symbol referencing error in itkDynamicLoader.o

Bill Hoffman bill.hoffman at kitware.com
Mon Sep 4 20:47:32 EDT 2000


The message is saying that the symbols are in /usr/lib/libdl.so.1, however,
that library has not been added to the link line.   Is this code using an
ITK makefile?  If so, it should automatically, get -ldl, if not, then
you need to add -ldl to your link line.

-Bill


At 01:01 AM 9/4/00 -0400, Sungwook Park wrote:

>Hi,
>I am compiling code with ITK.
>When itkDynamicLoader is being compiled, I got symbol referencing errors.
>It seems that dlclose,dlopen,dlsys and dlerror in itkDynamicLoader.cxx are
>not defined in the library(libdl.so.1)
>I am using Sun-machine.
>
>Undefined                       first referenced
>  symbol                             in file
>dlclose                             itkDynamicLoader.o  (symbol belongs to 
>implicit dependency /usr/lib/libdl.so.1)
>dlsym                               itkDynamicLoader.o  (symbol belongs to 
>implicit dependency /usr/lib/libdl.so.1)
>dlopen                              itkDynamicLoader.o  (symbol belongs to 
>implicit dependency /usr/lib/libdl.so.1)
>dlerror                             itkDynamicLoader.o  (symbol belongs to 
>implicit dependency /usr/lib/libdl.so.1)
>ld: fatal: Symbol referencing errors. No output written to main
>collect2: ld returned 1 exit status
>*** Error code 1
>make: Fatal error: Command failed for target `main'
>
>thanks
>          sungwook
>
>
>
>
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers






More information about the Insight-developers mailing list