On 7 May 2013, at 22:45, Kal <[email protected]> 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? _______________________________________________ Bug-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-gnustep
