[Top][All Lists]

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

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

From: Consul
Subject: [Qemu-devel] Re: Mingw GCC not recognising printf format "%I64u"
Date: Thu, 29 Jan 2009 12:44:40 -0800
User-agent: Thunderbird (Windows/20081209)

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 :(

//#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]