Ozkan Sezer wrote: > 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?
Quite honestly, I think an unknown conversion type should be an error. The compiler is saying it doesn't understand the format conversion so it is almost certainly not going to do the right thing. > 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 ? Yes, that fixes it. How come I have to use that for the w64 cross compiler but I don't need it for the w32 cross compiler? Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/ ------------------------------------------------------------------------------ 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