g++ -ldl
Amit Choudhary
amit2030@yahoo.com
Mon Sep 25 01:35:00 GMT 2006
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
More information about the Gcc-help
mailing list