Hi, the width specifier "ll" isn't supported by all msvcrt runtime DLLs. As gcc needs to be compatible to older versions here, we are warning about this. I would recomment that you are using instead of "ll" then constants defined from header <inttypes.h>. In your case PRIi64 would be the correct define.
Regards, Kai 2011/9/7 Michael Cronenworth <[email protected]>: > Hi all, > > I am getting a warning out of gcc that it doesn't know about %lli in > snprintf(). If I use sprintf() I don't see a warning. If I use > snprintf() and ignore the warning the resulting binary seems to work > just fine. > > Known bug or am I doing something wrong? > > Example code: > snprintf( sixtyFourByteStr, 63, "%lli", sixtyFourBitInt ); > > Gcc output: > CFLAGS = -mms-bitfields -g -Wall -pedantic -std=c99 -D _WIN32_WINNT=0x0501 > foo.c:1:35: warning: unknown conversion type character 'l' in format > foo.c:1:35: warning: too many arguments for format > _______________________________________________ > mingw mailing list > [email protected] > https://admin.fedoraproject.org/mailman/listinfo/mingw > -- | (\_/) This is Bunny. Copy and paste | (='.'=) Bunny into your signature to help | (")_(") him gain world domination _______________________________________________ mingw mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/mingw
