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

John Levon levon@movementarian.org
Tue Jan 8 11:23:00 GMT 2002


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



More information about the Binutils mailing list