Re: Error with gcc 4.7.1

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

 



Pranith Kumar <pranith@xxxxxxxxxx> writes:

| Hi,
>
| I am getting the following error when using gcc 4.7.1 to compile:

in -std=gnu++11 mode right?

| 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?

add a space between "%" and PRIi64 -> '"%" PRIi64'

-- 
	Lgb



[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