<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6002.18591" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2>This is a problem with C/C++. <inttypes.h> is a C99
feature, not included in C++03. <cinttypes> (corresponding to
<inttypes.h> in C) is included in C++11.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2>If you want to use a C++ compiler (instead of C), you may
use <SPAN class=625370420-01062012><FONT face=Arial color=#0000ff
size=2>'clang++ -D__STDC_FORMAT_MACROS=' as suggested by
Joerg.</FONT></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2></FONT></SPAN></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2>It is also possible to </FONT></SPAN>replace
<inttypes.h> with <cinttypes>. Using clang++ 3.1 (I assume you not
use g++ version 3.4.6 as in the description ;-) you get:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff
size=2>/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../include/c++/4.3/c++0x_warning.h:36:2:
error: This file requires compiler and library support for the upcoming
ISO<BR> C++ standard, C++0x. This support is
currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x
compiler options.<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2>using 'clang++ -std=c++11', gives </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2>xxx.c:8:35: error: invalid suffix on literal; C++11
requires a space between literal and identifier
[-Wreserved-user-defined-literal]<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2>i.e. you need to insert spaces around PRIx64, but otherwise
work as expected.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=625370420-01062012><FONT face=Arial
color=#0000ff size=2>/Patrik Hägglund</DIV></FONT></SPAN><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> llvmdev-bounces@cs.uiuc.edu
[mailto:llvmdev-bounces@cs.uiuc.edu] <B>On Behalf Of </B>Cameron
McInally<BR><B>Sent:</B> den 1 juni 2012 20:46<BR><B>To:</B>
llvmdev@cs.uiuc.edu<BR><B>Subject:</B> [LLVMdev] PRIx64 issue on SLES
11<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT class=Apple-style-span face="arial, helvetica, sans-serif">Hey
guys,</FONT></DIV>
<DIV><FONT class=Apple-style-span
face="arial, helvetica, sans-serif"><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span face="arial, helvetica, sans-serif">I'm having
trouble with PRIx64 and buddies in the X86 target on SLES 11. After searching,
my issue seems like a generic problem with PRI support on different
OS's. </FONT></DIV>
<DIV><FONT class=Apple-style-span
face="arial, helvetica, sans-serif"><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span face="arial, helvetica, sans-serif">Here's a
decent description of my problem:</FONT></DIV>
<DIV><FONT class=Apple-style-span
face="arial, helvetica, sans-serif"><BR></FONT></DIV>
<DIV>
<P style="MARGIN: 0px; FONT: 12px Helvetica"><FONT class=Apple-style-span
face="arial, helvetica, sans-serif"><A
href="http://gcc.gnu.org/ml/gcc-help/2006-10/msg00221.html">http://gcc.gnu.org/ml/gcc-help/2006-10/msg00221.html</A></FONT></P>
<P style="MARGIN: 0px; FONT: 12px Helvetica"><FONT class=Apple-style-span
face="arial, helvetica, sans-serif"><BR></FONT></P>
<P style="MARGIN: 0px; FONT: 12px Helvetica"><FONT class=Apple-style-span
face="arial, helvetica, sans-serif">Any suggested methods to correct
for <SPAN class=Apple-style-span
style="WHITE-SPACE: pre"><inttypes.h> not having the proper macros defined
(besides defining the macros myself)? Has anyone else had trouble with these
macros? </SPAN></FONT></P>
<P style="MARGIN: 0px; FONT: 12px Helvetica"><SPAN class=Apple-style-span
style="WHITE-SPACE: pre"><FONT class=Apple-style-span
face="arial, helvetica, sans-serif"><BR></FONT></SPAN></P>
<P style="MARGIN: 0px; FONT: 12px Helvetica"><SPAN class=Apple-style-span
style="WHITE-SPACE: pre"><FONT class=Apple-style-span
face="arial, helvetica, sans-serif">Ty,</FONT></SPAN></P>
<P style="MARGIN: 0px; FONT: 12px Helvetica"><SPAN class=Apple-style-span
style="WHITE-SPACE: pre"><FONT class=Apple-style-span
face="arial, helvetica, sans-serif">Cameron</FONT></SPAN></P></DIV></BODY></HTML>