c++ - inconsistent literal with 4.7 g++ -


i have quite problem simple defines in code. i've read fix mozilla bug site report, not work in case.

original part of code (of course worked in 4.6):

#define __stdc_format_macros #include <inttypes.h> #define "a: %20"priu64  error: inconsistent user-defined literal suffixes ’a’ in string literal 

after fix:

#define __stdc_format_macros #include <inttypes.h> #define "a: %20" priu64  error: inconsistent user-defined literal suffixes ’a’ in string literal 

any other suggestions?

i suggest upgrading later version of g++ - both forms of code work fine in version 5.4:

#include <iostream> #define __stdc_format_macros #include <inttypes.h> #define "a: %20"priu64 #define b "b: %20" priu64  int main() {     std::cout << << std::endl;     std::cout << b << std::endl; } 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -