public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Chris Hennes <chennes@sukrahelitek.com>
To: gcc-help@gcc.gnu.org
Subject: Dynamic loader and virtual functions
Date: Sat, 17 Aug 2002 05:28:00 -0000	[thread overview]
Message-ID: <3D5E4178.6080507@sukrahelitek.com> (raw)

I have a C++ application that loads plugins using dlopen and dlsym. To 
do this, each plugin has an extern "C" function called LoadPlugin. Up 
until now, this has worked fine. Now, I am developing a new plugin. The 
first few tests worked fine - dlsym found LoadPlugin without any 
trouble. I then added a new class to the plugin - it is derived from a 
class that is defined in the main application, which has numerous 
virtual functions. If I don't override those functions in the new class, 
everything works fine (as far as loading is concerned), but all I have 
to do is uncomment one in the header file, and suddenly dlsym no longer 
finds LoadPlugin. Any clues?

If there is different mailing list that this should be posted on, please 
  let me know.

Thanks,

Chris Hennes

             reply	other threads:[~2002-08-17 12:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-17  5:28 Chris Hennes [this message]
2002-08-17  5:53 ` bjorn rohde jensen
2002-08-17  6:16   ` Chris Hennes
2002-08-17  8:02     ` bjorn rohde jensen
2002-08-17  8:10       ` Chris Hennes
2002-08-17 11:19         ` bjorn rohde jensen

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=3D5E4178.6080507@sukrahelitek.com \
    --to=chennes@sukrahelitek.com \
    --cc=gcc-help@gcc.gnu.org \
    /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).