RE: [Dev-C++] OT: mingw, printf and DWORD64
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Marc H. <ma...@e-...> - 2002-12-18 12:00:00
|
Try using "%I64u" for the format specifier. _____________________________ Marc Heiligers -----Original Message----- From: Zodiaq [mailto:zo...@ac...] Sent: 17 December 2002 02:32 PM To: Dev...@li... Subject: [Dev-C++] OT: mingw, printf and DWORD64 Hello all Dev-cpp-users, I'm writing some apps under DevC++ (which, as everybody know is great IDE) and I've encountered small problem - can't force mingw to properlsy print laaaaaaaarge integers (signed or not)... already tried: printf( "%lu", ( DWORD64 )-1 ); but this gives me short number as output... and compiler gives me warning: warning: long unsigned int format, different type arg (arg 2) well, with <iostream> everything works fine, but I'd like to force printf to work - it must be possible somehow... but how? -- regards, Zodiaq |