|
From: | Roumen Petrov |
Subject: | Re: C++ Plugins and virtual destructors. |
Date: | Tue, 13 Nov 2007 23:23:52 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8) Gecko/20071024 SeaMonkey/1.1.5 |
Ralf Wildenhues wrote:
Lest see samples from http://sourceware.org/ml/glibc-bugs/2005-08/msg00074.html* Daniel Herring wrote on Mon, Nov 12, 2007 at 07:46:55AM CET:Here's a relevant post from the GCC list; it mentions how to work around some dlopen difficulties (including RTTI, exceptions, custom new/delete).http://gcc.gnu.org/ml/gcc-help/2007-10/msg00248.htmlThanks for this link. FWIW, I could not easily see why RTLD_NOW should be needed. If it is, there's an opportunity to extent libltdl's advise API for this flag.
If chain2.c dlopen with RTLD_LOCAL only the program crash in dlclose(segmentation fault). So that work around is to use either RTLD_NOW or RTLD_LAZY. [SNIP] Roumen
[Prev in Thread] | Current Thread | [Next in Thread] |