[LLVMdev] PRIx64 issue on SLES 11
Joerg Sonnenberger
joerg at britannica.bec.de
Fri Jun 1 11:57:43 PDT 2012
On Fri, Jun 01, 2012 at 02:46:13PM -0400, Cameron McInally wrote:
> Hey guys,
>
> 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.
>
> Here's a decent description of my problem:
>
> http://gcc.gnu.org/ml/gcc-help/2006-10/msg00221.html
>
>
> Any suggested methods to correct for <inttypes.h> not having the proper
> macros defined (besides defining the macros myself)? Has anyone else had
> trouble with these macros?
Well, Ian is correct. If you build with a C++ compiler, you need to
define __STDC_FORMAT_MACROS.
Joerg
More information about the llvm-dev
mailing list