Re: g++ -ldl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sheldon,

If you are using any of the following functions - dlopen(),
dladdr(), dlerror(), dlsym(), or dlclose() then you need to link
with the libdl.so library. Hence, you require the option -ldl.

If you are not using them directly, then probably some other
code  is using them.

-Amit

--- Jeremy Sheldon <jeremy_sheldon@xxxxxxxxxxx> wrote:

> would someone please point me to the correct place to find
> information on 
> what the -ldl option would do for g++ ?  I've looked at the
> gcc man page and 
> browsed google for a while and can't find much information on
> it.  I have a 
> situation where using it clears up a few "undefined reference
> to `dlopen'" 
> errors and would like to understand why.
> 
> sheldon
> 
> 
> 




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux