This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ -ldl


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@hotmail.com> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]