bug-gnulib
[Top][All Lists]
Advanced

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

Re: Symbol availability in C, C++


From: Albert Chin
Subject: Re: Symbol availability in C, C++
Date: Mon, 28 Nov 2005 07:11:17 -0600
User-agent: Mutt/1.5.6i

On Sun, Nov 27, 2005 at 10:08:44PM -0800, Paul Eggert wrote:
> Albert Chin <address@hidden> writes:
> 
> > We've currently solved it by implementing
> > separate defines depending on the language.
> 
> That doesn't sound quite right.  If you compile with different C
> compilers, or the same C compiler with differing options, you should
> have to rerun 'configure'.  The same sort of thing should occur if
> you compile with both a C and a C++ compiler; in effect you need
> run 'configure' more than once.
> 
> It might be possible to generalize Autoconf to support multiple (and
> incompatible) compilers used for the same project, but that'd be a
> bigger undertaking.

Huh? I'm talking about _one_ project with two languages, C and C++. In
such a project, if human.h includes <stdint.h> because of
HAVE_STDINT_H, how should a C++ source file #include "human.h"
correctly when <stdint.h> isn't available to the C++ compiler?

-- 
albert chin (address@hidden)




reply via email to

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