[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: libltdl examples
From: |
Eric Lemings |
Subject: |
RE: libltdl examples |
Date: |
Fri, 30 Dec 2005 13:09:03 -0700 |
> -----Original Message-----
> From: Bob Friesenhahn [mailto:address@hidden
> Sent: Friday, December 30, 2005 1:01 PM
> To: Eric Lemings
> Cc: 'address@hidden'
> 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.