----- Original Message ----- From: "David Cleaver"

However, I still get the problem with the t-printf test failing saying:
PASS: t-locale.exe
FAIL: t-printf.exe
PASS: t-scanf.exe
=============================================================
1 of 3 tests failed
See tests/misc/test-suite.log

And in the test-suite.log is the following:

gmp_vsprintf wrong
  fmt      |%Mu|
  got      |4294967295|
  want     |8589934591|
  got_len  10
  want_len 10

I wonder why the test works in your environment? Maybe the mingw64 cross-compiler can print the posix modifiers by default? Or you may have a different build, with different options compiled in, than I have? I'm using the personal build by sezero, the one that was released on 2010-10-03. If you let me know which build you are using, I can go ask on the mingw64 mailing list. Are you by any chance compiling in a cygwin environment? I think printf would work differently there and actually recognize the %llu modifier.

Yeah - I don't see any configure checks for supported modifiers when I hunt through the configure output. (It must be mpfr that I'm thinking of.)

I'm using one of the "Automated Builds" provided by the mingw64.sf team. It's version 4.7.0. (MinGW, no Cygwin btw.)

I don't know that it actually supports the %llu modifier.

I have this little test program:

#include <stdio.h>
#include <inttypes.h>

int main(void) {
uintmax_t x = 1125899906842749LL;
printf("%llu\n", x);
return 0;
}

It builds silently when I omit the -Wall switch, but when I build it with:
x86_64-w64-mingw32-gcc -o try.exe try.c -Wall

I get this:

C:\_64\c>x86_64-w64-mingw32-gcc -o try.exe try.c -Wall
try.c: In function 'main':
try.c:7:2: warning: unknown conversion type character 'l' in format [-Wformat]
try.c:7:2: warning: too many arguments for format [-Wformat-extra-args]

Then, when I execute try.exe it prints out the number correctly:

C:\_64\c>try
1125899906842749

Do you get different behaviour with your compiler ?

Cheers,
Rob
--
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

Reply via email to