> Have you tried %I64d ? Remember that Mingw uses the MSVC runtime library.
hey! It works!! Sure, I tried it first as it was in the original code, but got that:
diskid32.c: In function `PrintIdeInfo':
diskid32.c:573: warning: unknown conversion type character `I' in format
diskid32.c:573: warning: too many arguments for format
diskid32.c: In function `getHardDriveComputerID':
diskid32.c:712: warning: unknown conversion type character `I' in format
diskid32.c:712: warning: too many arguments for format
and therefore I didnt start the executable; now I've tested and the values are correct!
he developers, maybe we can get rid of these warning in future releases??
Reading specs from c:/prg/mingw/bin/../lib/gcc-lib/mingw32/2.95.3-6/specs
gcc version 2.95.3-6 (mingw special)
> Luke Dunstan
> ----- Original Message -----
> From: "Guenter Knauf" <eflash@...>
> To: <mingw-users@...>
> Sent: Saturday, July 13, 2002 2:50 AM
> Subject: [Mingw-users] how can I print __int64??
> Hi all,
> found some source for getting the harddisk serial number, and it compiles
> fine with MSVC.
> Now I want to integrate this function in my report tool which is built
> MingW32, and after some changes (moving struct typedefs and variable
> declarations to the beginning) it compiles now fine; but I'm not able to
> print out __int64 values correctly. I've tried %Lu, %llu (the same), %qu
> (not recognized)....
> the original code for MSVC uses %I64d...
> any hints??
> if someone wants to give it a try: