[Mingw-w64-public] PRIu64 and uint64_t

2013-06-09 Thread Gunnar
In MinGW564 the code:

#define __STDC_FORMAT_MACROS 1
#include inttypes.h

..
..

uint64_t i = 0;
printf(i = % PRIu64 \n, i);



leads to a unknown conversion type character 'l' in format. In MiGW32 it 
compiles witout a warning.

The command that I use is 

x86_64-w64-mingw32-gcc-4.8.0.exe -fexceptions  -O3  -Winline -Wall   -c ... -
o...


Is PRIu64 not the correct macro for printf family with uint64_t?


Thanks,
Gunnar


--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] PRIu64 and uint64_t

2013-06-03 Thread Gunnar
In MinGW564 the code:

#define __STDC_FORMAT_MACROS 1
#include inttypes.h

..
..

uint64_t i = 0;
printf(i = % PRIu64 \n, i);



leads to a unknown conversion type character 'l' in format. In MiGW32 it 
compiles witout a warning.

The command that I use is 

x86_64-w64-mingw32-gcc-4.8.0.exe -fexceptions  -O3  -Winline -Wall   -c ... -
o...


Is PRIu64 not the correct macro for printf family with uint64_t?


Thanks,
Gunnar


--
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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public