-------- Original-Nachricht -------- > Datum: Tue, 28 Oct 2008 14:31:07 +0100 > Von: Oliver Tappe <zooey@xxxxxxxxxxxxxxx> > An: haiku-development@xxxxxxxxxxxxx > Betreff: [haiku-development] Re: Aw: Re: Source-level incompatibility in > iconv.h > > On 2008-10-28 at 14:05:22 [+0100], François Revol <revol@xxxxxxx> wrote: > > > [ ... ] > > Does the header have proper C++ guards ? > > Yes it does (it applies an extern "C" scope in C++-mode). > > > It should be used with C linkage, which shouldn't pose a problem, > > unless C++ has different rules about it, which wouldn't surprise me. > > Obviously, those rules are indeed different in C++, since even gcc-4.2 > behaves the same (i.e. prints a warning in C and chokes in C++). Isn't the problem that this is supposed to be a pointer to "const char*"? In that case, "const" is at the wrong position. I always need to look this up, and currently can't, otherwise I'd write here what I think it should be. Best regards, -Stephan