qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u"


From: Anthony Liguori
Subject: Re: [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u"
Date: Thu, 29 Jan 2009 14:56:23 -0600
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Consul wrote:
Anthony Liguori wrote:
Okay, I wrote a small program that included inttypes.h. PRIu64 was defined as I64u.

This bug should be fixed in GCC-4.4.0 (and backported to 3.4.2 MinGW's stable) However the latest version ported to MinGW is still 4.3.0. Mind you I64u in the format line still gives the correct result, only this annoying warning is the problem. Other suggested format options silenced the warning, but also truncated the result :(

Okay, then we can just ignore it for now.

Regards,

Anthony Liguori

#include<stdio.h>
#include<inttypes.h>
//#define PRIu64 "I64u"
int main() {
    unsigned __int64 x = 1122334455667788LL;
    printf("Number: %"PRIu64"\n", x);
    return 0;
}








reply via email to

[Prev in Thread] Current Thread [Next in Thread]