This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: g++ -ldl
- From: Amit Choudhary <amit2030 at yahoo dot com>
- To: Jeremy Sheldon <jeremy_sheldon at hotmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Sun, 24 Sep 2006 18:35:31 -0700 (PDT)
- Subject: 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