On 12/15/2011 11:11 PM, Sisyphus wrote:
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
I get similar 'and' different behavior with my compiler. The similarity is
that, without -Wall it silently/successfully builds the program. With -Wall, it
gives the following error:
$ gcc -o try.exe try.c -Wall
try.c: In function 'main':
try.c:6: warning: unknown conversion type character 'l' in format
try.c:6: warning: too many arguments for format
Then, when I run try.exe, I get the following output:
$ try.exe
125
Can you post your output when you run:
x86_64-w64-mingw32-gcc -v
I'd like to bring this up on the mingw64 mailing list to see if they can help us
track down why we are seeing different behavior. If you're interested, here is
my 'gcc -v':
Using built-in specs.
Target: x86_64-w64-mingw32
Configured with: ../gcc44-svn/configure --host=x86_64-w64-mingw32
--target=x86_64-w64-mingw32 --disable-multilib --enable-checking=release
--prefix=/mingw64 --with-sysroot=/mingw64
--enable-languages=c,c++,fortran,objc,obj-c++ --enable-libgomp
--with-gmp=/mingw64 --with-mpfr=/mingw64 --disable-nls --disable-win32-registry
Thread model: win32
gcc version 4.4.5 20101001 (release) [svn/rev.164871 - mingw-w64/oz] (GCC)
Thanks for working with me on this. I'll talk with you later.
-David C.
--
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.