From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21986 invoked by alias); 17 Aug 2002 12:28:42 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 21979 invoked from network); 17 Aug 2002 12:28:41 -0000 Received: from unknown (HELO paranoia.sukrahelitek.com) (12.216.14.6) by sources.redhat.com with SMTP; 17 Aug 2002 12:28:41 -0000 Received: from sukrahelitek.com (unknown [10.0.0.2]) by paranoia.sukrahelitek.com (Postfix on SuSE Linux 7.0 (i386)) with ESMTP id 668642F88D for ; Sat, 17 Aug 2002 08:32:57 -0500 (CDT) Message-ID: <3D5E4178.6080507@sukrahelitek.com> Date: Sat, 17 Aug 2002 05:28:00 -0000 From: Chris Hennes Reply-To: chennes@sukrahelitek.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020722 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Dynamic loader and virtual functions Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00146.txt.bz2 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