sorry, my yahoo mail can only top-post, so don't email me about that. still
investigating this problem.
when I try
#include <cstdio>
#include <stdint.h>
int main(void) {
int64_t maxi=0x7fffffffffffffffLL;
int64_t mini=0xffffffffffffffffLL;
//__int128 i=0x7fffffffffffffffffffffffffffffff;//gives error
printf("0x7fffffffffffffffLL=%I64d\n", maxi);//gives warning about int
printf("0xffffffffffffffffLL=%I64d\n", mini);//gives warning about int
//printf("0x7fffffffffffffffffffffffffffffff=%I128d\n", i); //gives error
return 0;
}
I64.cpp:7:48: warning: format '%d' expects argument of type 'int', but argument
2 has type 'int64_t {aka long long int}' [-Wformat=]
I64.cpp:8:48: warning: format '%d' expects argument of
type 'int', but argument 2 has type 'int64_t {aka long long int}' [-Wformat=]
%I64d does not completely work for me without warnings.
>________________________________
>From: Jim Michaels <[email protected]>
>To: "[email protected]"
><[email protected]>
>Sent: Thursday, May 2, 2013 5:22 PM
>Subject: Re: [Mingw-w64-public] format check broken
>
>
>
>%I64d results in same message.
>
>
>
>
>>________________________________
>> From: LRN <[email protected]>
>>To: [email protected]
>>Sent: Thursday, May 2, 2013 3:28 PM
>>Subject: Re: [Mingw-w64-public] format check broken
>>
>>
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>On 01.05.2013 22:09, swigger wrote:
>>> ~/tmp$ cat hello.c
>>> #include <stdio.h>
>>>
>>> int main()
>>> {
>>> printf("%lld\n", 0x123456789all);
>>> return 0;
>>> }
>>> ~/tmp$ gcc -Wall hello.c
>>> ~/tmp$ i686-w64-mingw32-gcc -Wall hello.c
>>> hello.c: In function ‘main’:
>>> hello.c:5:2: warning: unknown conversion type character ‘l’ in format
>>Try compiling with -D__MINGW_USE_ANSI_STDIO=1 in CPPFLAGS.
>>
>>- --
>>O< ascii ribbon - stop html email! - www.asciiribbon.org
>>-----BEGIN PGP SIGNATURE-----
>>Version: GnuPG v1.4.11
(MingW32)
>>
>>iQEcBAEBAgAGBQJRguihAAoJEOs4Jb6SI2Cw53oH/3fgHeAX3MYLp94RbuB/HA4B
>>5EZHLqsN/gYNu8ke9FDrubAEn9N/2e0gcavHAI0SR2l8Vgioe7WEaDDjReWDozsp
>>kyjzaAtOpeJdyX+D0775S42HRNDD3aKWQEHzZ+EsdQQazfuBNscy7sSZlceAt7Fz
>>VNq4KJDjDF+7jtZXedfxCAL+/E9r8hFXChGFGecWHKbVVCax82uhO/n09CugkBkq
>>ehtMVpsrwdwmpAo/8Sg59Zf82KtLSx2vLy3vXNwBKmClIFES6EMXSVo+WmF1h/xj
>>bgr3TUiwWK2JmfEqHGUx4Y70+oe9zFp4J8oeNUorUVmSZFXv8cXGnHBBdhiNqX8=
>>=iMKZ
>>-----END PGP SIGNATURE-----
>>
>>------------------------------------------------------------------------------
>>Get 100% visibility into Java/.NET code with AppDynamics Lite
>>It's a free troubleshooting tool designed for production
>>Get down to code-level detail for bottlenecks, with <2% overhead.
>>Download for free and get started troubleshooting in minutes.
>>http://p.sf.net/sfu/appdyn_d2d_ap2
>>_______________________________________________
>>Mingw-w64-public mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>>
>>
>------------------------------------------------------------------------------
>Get 100% visibility into Java/.NET code with AppDynamics Lite
>It's a free troubleshooting tool designed for production
>Get down to code-level detail for bottlenecks, with <2% overhead.
>Download for free and get started troubleshooting in minutes.
>http://p.sf.net/sfu/appdyn_d2d_ap2
>_______________________________________________
>Mingw-w64-public mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
>------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public