bug-gnustep
[Top][All Lists]
Advanced

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

Re: GNUstep.h doesn't compile in C++11


From: Richard Frith-Macdonald
Subject: Re: GNUstep.h doesn't compile in C++11
Date: Wed, 8 May 2013 07:42:15 +0100

On 7 May 2013, at 22:45, Kal <b17c0de@gmail.com> wrote:

> Hi,
> GNUstep.h doesn't compile with clang in C++11 mode. I get the following
> errors:
> 
> /opt/GNUstep/Local/Library/Headers/GNUstepBase/GNUstep.h:347:19: error:
> invalid suffix on literal; C++11 requires a space between literal and
> identifier [-Wreserved-user-defined-literal]
>      PRIuPTR", %"PRIuPTR" } extends beyond size (%"PRIuPTR")", \
>                  ^
> 
> /opt/GNUstep/Local/Library/Headers/GNUstepBase/GNUstep.h:347:53: error:
> invalid suffix on literal; C++11 requires a space between literal and
> identifier [-Wreserved-user-defined-literal]
>      PRIuPTR", %"PRIuPTR" } extends beyond size (%"PRIuPTR")", \
>                                                    ^
> 
> /opt/GNUstep/Local/Library/Headers/GNUstepBase/GNUstep.h:356:30: error:
> invalid suffix on literal; C++11 requires a space between literal and
> identifier [-Wreserved-user-defined-literal]
>    format: @"in %s, index %"PRIuPTR" is out of range", \
> 
> Can someone commit the trivial fix for this?

We would need to know what the trivial fix is ... presumably there's some 
problem including the system headers, since the compiler seems to think that 
PRIuPTR is an identifier, which it is not (it's a standard preprocessor 
constant which should have been replaced by a literal string before the 
compiler sees it).

Is that a system specific issue?  Do we need to define some other constant 
before including headers etc?


reply via email to

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