From 0a378ba0b6914257497a5d56bc0f2e3adf4be8d2 Mon Sep 17 00:00:00 2001 From: Robert Boehne Date: Fri, 19 Apr 2002 19:26:59 +0000 Subject: [PATCH] * doc/libtool.texi (C++ libraries): Finally updated to reflect Libtool's support for C++. --- ChangeLog | 5 +++++ doc/libtool.texi | 20 ++++++-------------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index cf40f651c..6f3036b2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-04-19 Robert Boehne + + * doc/libtool.texi (C++ libraries): Finally updated to reflect + Libtool's support for C++. + 2002-04-14 Jean-Frederic Clere * libtool.m4: Update support for Fujistu-Siemens Computers (FSC). diff --git a/doc/libtool.texi b/doc/libtool.texi index 8f448e386..e95057298 100644 --- a/doc/libtool.texi +++ b/doc/libtool.texi @@ -3571,22 +3571,14 @@ C++ compilers will link some Standard C++ library in by default, but libtool does not know which are these libraries, so it cannot even run the inter-library dependence analyzer to check how to link it in. Therefore, running @file{ld} to link a C++ program or library is deemed -to fail. However, running the C++ compiler directly may lead to -problems related with inter-library dependencies. +to fail. @end enumerate -The conclusion is that libtool is not ready for general use for C++ -libraries. You should avoid any global or static variable -initializations that would cause an ``initializer element is not -constant'' error if you compiled them with a standard C compiler. - -There are other ways of working around this problem, but they are beyond -the scope of this manual. - -Furthermore, you'd better find out, at configure time, what are the C++ -Standard libraries that the C++ compiler will link in by default, and -explicitly list them in the link command line. Hopefully, in the -future, libtool will be able to do this job by itself. +Because of these three issues, Libtool has been designed to always use +the C++ compiler to compile and link C++ programs and libraries. In +some instances the @code{main()} function of a program must also be +compiled with the C++ compiler for static C++ objects to be properly +initialized. @node Troubleshooting -- 2.47.3