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

ASHES D GANGULY ashes at email.unc.edu
Mon Sep 4 10:56:08 EDT 2000


 I think you need to give the -ldl flag to the compiler when you are
creating the executable.

Ashes

On Mon, 4 Sep 2000, 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