Re: Error with gcc 4.7.1

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

 



On 1 November 2012 16:41, Pranith Kumar wrote:
> 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?

It's not a bug.  See the "User-defined literals and whitespace"
section of http://gcc.gnu.org/gcc-4.7/porting_to.html



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux