public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Amit Choudhary <amit2030@yahoo.com>
To: Jeremy Sheldon <jeremy_sheldon@hotmail.com>, gcc-help@gcc.gnu.org
Subject: Re: g++ -ldl
Date: Mon, 25 Sep 2006 01:35:00 -0000	[thread overview]
Message-ID: <20060925013531.99622.qmail@web55611.mail.re4.yahoo.com> (raw)
In-Reply-To: <BAY105-F256AAE2F33915E896D6D3FEB270@phx.gbl>

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 

  parent reply	other threads:[~2006-09-25  1:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-24 21:36 Jeremy Sheldon
2006-09-24 23:12 ` John (Eljay) Love-Jensen
2006-09-25  1:35 ` Amit Choudhary [this message]
     [not found] <45170E64.2010308@telia.com>
2006-09-25  1:26 ` Jeremy Sheldon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060925013531.99622.qmail@web55611.mail.re4.yahoo.com \
    --to=amit2030@yahoo.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=jeremy_sheldon@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).