This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with gcc + exceptions + -pedantic + libiberty.h


On Mon, Jan 07, 2002 at 11:28:47PM -0500, DJ Delorie wrote:

> 2. C++ source shouldn't ever see the () decl, me thinks.  It's inside
>    an extern "C" but I have this nagging feeling I've seen C++ sources
>    complain if they don't also see the real prototype.

How about :

1) teaching GNU libc string.h to set HAVE_DECL_BASENAME

and

2) including string.h (+ stdio.h) in libiberty.h

That way the headers will "just work" in C++ without my application having to
worry about setting HAVE_DECL_BASENAME myself.

I'm not exactly fond of platform-specific hacks myself, but it would perhaps
reduce the complexity of the necessary autoconfigurey in my project to see if
c++ -pedantic is going to work in this case or not

regards
john

-- 
"I went to set up a Yahoo ID for my dog. (Don't ask, but the DOG'S email was cluttering my inbox)." 
	- Ruthless Advisorette


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]