autoconf
[Top][All Lists]
Advanced

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

Re: Question on design of a C++ library w.r.t. config.h contents


From: Steve M. Robbins
Subject: Re: Question on design of a C++ library w.r.t. config.h contents
Date: Sat, 09 Nov 2002 10:49:44 -0500
User-agent: Mutt/1.4i

On Fri, Nov 08, 2002 at 12:53:00PM -0800, Michael D. Beynon wrote:
> I have a C++ library that I use with autotools.  I have a config.h that
> gets produced, and is included by BOTH the library c++ files and the
> header files.  These header files are also exported for users of the
> library.  The problem is if the users also use autotools, the PACKAGE,
> VERSION, etc. symbols collide, and the current version of g++3.2
> produces many warnings.  I want to fix this somehow.  The library
> header files MUST include config.h because I use tests from many C++
> ISO conformance test macros and use the results (HAVE_BOOL,
> HAVE_DYNAMIC_CAST, etc.), and these must be in library exposed structs
> and even in template code.
> 
> My question: how can I accomplish this?

The answer is available from: http://ac-archive.sourceforge.net/
  (ac_create_prefix_config_h)

In addition: you will do the users of your library a great favour
if you call the header something other than "config.h".

-S





reply via email to

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