Error with gcc 4.7.1

Pranith Kumar pranith@gatech.edu
Thu Nov 1 16:41:00 GMT 2012


Hi,

I am getting the following error when using gcc 4.7.1 to compile:

snprintf(temp, sizeof(temp)/sizeof(temp[0]), "%"PRIi64, value);

error: unable to find string literal operator ‘operator"" PRIi64’

This compiles fine with Intel compiler. Is this a bug? Is there any 
workaround?

Thanks,
Pranith



More information about the Gcc-help mailing list