Le 03/06/2013 13:00, Gunnar a écrit :
> In MinGW564 the code:
> 
> #define __STDC_FORMAT_MACROS 1
> #include <inttypes.h>
> 
> ..
> ..
> 
> uint64_t i = 0;
> printf("i = %" PRIu64 "\n", i);
> 
> 
> 
> leads to a "unknown conversion type character 'l' in format". In MiGW32 it 
> compiles witout a warning.
> 
> The command that I use is 
> 
> x86_64-w64-mingw32-gcc-4.8.0.exe -fexceptions  -O3  -Winline -Wall   -c ... -
> o...
> 
> 
> Is PRIu64 not the correct macro for printf family with uint64_t?

Try with #define __USE_MINGW_ANSI_STDIO 1

PRIu64 is not known by MS version of printf

For details see http://sourceforge.net/apps/trac/mingw-w64/wiki/gnu%20printf

> Thanks,
> Gunnar

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to