[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool for C++

From: Bob Friesenhahn
Subject: Re: libtool for C++
Date: Sun, 3 Feb 2002 10:15:06 -0600 (CST)

CVS libtool seems to work just fine for C++.  I have been using it to
build a C++ shared library for maybe 1-1/2 years now.  Libtool uses
the C++ compiler to compile and link C++ modules so I expect that any
static initialization problems would be due to the compiler or OS, and
not libtool itself.  Some OSs are known to have problems with static
construction/destruction in C++ loadable modules.

I do see problems with throwing C++ exceptions from a shared library
under SPARC Solaris 2.6 (but not Solaris 7) but I suspect that gcc is
at fault here because they used to work ok.  I recall that C++
exceptions were working for me under Solaris 2.6 with gcc 2.95.2, but
stopped working with 2.95.3 and later.  I am also seeing problems with
static destruction under Solaris 2.6 (but not Solaris 7).  It was
suggested to me that I use gcc with the latest binutils, but that lead
to a severely disfunctional C++ compiler.


On Sun, 3 Feb 2002, Steve M. Robbins wrote:

> On Mon, Jan 28, 2002 at 04:48:04PM -0600, Bob Friesenhahn wrote:
> > On Mon, 28 Jan 2002, Robert Boehne wrote:
> > 
> > > It is NOT up-to-date for CVS HEAD and alpha versions of Libtool.
> > 
> > I recall that this documentation was updated in the muti-lingual
> > branch.  Perhaps it was not merged over as it should have been?
> Okay, I checked out 'multi-language-branch', and diff'ed the file
> doc/libtool.texi.  There are lots of differences!
> At the section in question, however, there is simply the addition
> of the following note.
>     @emph{NOTE}: The problems described in this section may no longer
>     relevant due to the @samp{libtool} multi-language support.  To
>     enable C++ support in libtool, use the @code{AC_LIBTOOL_CXX} macro
>     in your @file{} file.
> Since the note is written in the conditional voice, I don't really
> know what to make of it.  Are the problems relevant or not?
> Am I okay as long as the library has no static variables?  If so, is
> that true of the released libtool?
> Regards,
> -Steve
> P.S.  Perhaps the note needs revision: elsewhere in the docs, I see
> that you don't really need AC_LIBTOOL_CXX, as long as AC_PROG_CXX is
> used.
> -- 
> by Rocket to the Moon,
> by Airplane to the Rocket,
> by Taxi to the Airport,
> by Frontdoor to the Taxi,
> by throwing back the blanket and laying down the legs ...
> - They Might Be Giants
> _______________________________________________
> Libtool mailing list
> address@hidden

Bob Friesenhahn

reply via email to

[Prev in Thread] Current Thread [Next in Thread]