On 6/3/2013 20:16, Rafaël Carré wrote: > 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.
> > 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 No, something is wrong here, the inttypes.h declaration should have matched the appropriate printf versions. Some work went in to make sure either C99 and MS printf formats are declared depending on the printf used. Please show a minimal test case to duplicate the issue.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ 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