On Sat, Sep 19, 2009 at 9:20 AM, Erik de Castro Lopo <mle+...@mega-nerd.com> wrote: > Ozkan Sezer wrote: > >> - Which svn revision of mingw-w64 headers and crt did you >> use in your toolchain ? > > Same revision for both : > > Path: . > URL: https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/trunk > Repository Root: https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64 > Repository UUID: 4407c894-4637-0410-b4f5-ada5f102cad1 > Revision: 1375 > Node Kind: directory > Schedule: normal > Last Changed Author: ktietz70 > Last Changed Rev: 1375 > Last Changed Date: 2009-09-18 17:08:14 +1000 (Fri, 18 Sep 2009) > >> - Contents of test.c (cat test.c), at least the relevant parts of it >> including the headers you include and macros you define that >> would affect things ? > > Well that test.c was a bit big, but this little snippet hits the same > problem: > > #include <stdio.h> > #include <inttypes.h> > int main (void) > { int64_t big_number = 1LL << 34 ; > big_number *= 1027LL ; > printf ("%-12" PRId64 " %zd\n", big_number, sizeof (big_number)) ; > return 0 ; > } > >> - Your exact command line for compiling test.c ? > > x86_64-w64-mingw32-gcc -Wall -std=gnu99 test.c -o test > > Erik
Hmm, with my versions gcc-4.4.2 (svn r151768, patched but nothing that would affect this) and mingw-w64 r1375-r1378, I get: x86_64-pc-mingw32-gcc -Wall -std=gnu99 test.c test.c: In function 'main': test.c:6: warning: unknown conversion type character 'z' in format test.c:6: warning: too many arguments for format Notice that it's not an 'error' but a warning. How come you get an error? And if I add -D__USE_MINGW_ANSI_STDIO=1 to the command line, then I get no warnings at all. Did you try with -D__USE_MINGW_ANSI_STDIO=1 ? -- Ozkan ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public