On 03/06/2013, at 2:52 AM, Gunnar <gunnar.ha...@chello.nl> wrote: > 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?
I believe you need to use "-ansi", "-posix", or one of the "-std=…" options to trigger standards-compiliant behaviour. Cheers, Tony ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public