> -----Original Message----- > From: Bob Friesenhahn [mailto:[EMAIL PROTECTED] > Sent: Friday, December 30, 2005 1:01 PM > To: Eric Lemings > Cc: 'libtool@gnu.org' > Subject: RE: libltdl examples > > > On Fri, 30 Dec 2005, Eric Lemings wrote: > > > Do any of these use C++ as their primary language? And > does libltdl > > work the same even if the package is configured with > --disable-shared? > > The main issues with C++ are platform limitations with C++ static > initialization and the usefulness of exporting symbols that > need to be > resolved as C language symbols so they are not subject to mangling.
What I'm really looking for is a good example of a package written in C++ that uses libltdl to load libraries at run-time. How they do it, problems to watch out for, etc. To get around the problems you mention, I'm declaring exported symbols in my C++ code with C linkage and I don't have any variables (so far) in my dlopened libraries that require static initialization. Eric. _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool