2013/5/2 Jim Michaels <[email protected]>

> in rubenvb 4.8 stdthread experimental compiler, with
> #include <stdint.h>
> int64_t x=1;
> printf("%02I64d", x);
> I am getting a warning.
> sleep.cpp:122:91: warning: unknown conversion type character 'I' in format
> [-Wformat=]
>
> this seems to break tradition from the auto builds, which fololowed the
> msvc++ %I64d for 64-bit numbers. does this use standard gcc %lld instead?
>

Make sure you define__USE_MINGW_ANSI_STDIO before including inttypes.h.
This is a MinGW vs msvcrt.dll thing, for which the above define provides a
clean workaround.

See e.g.
http://sourceforge.net/p/mingw-w64/code/1317

Ruben



> thanks.
>
> -------------
> Jim Michaels
> [email protected] <[email protected]>
> [email protected]
> http:// 
> <http://renewalcomputerservices.com/>RenewalComputerServices.com<http://renewalcomputerservices.com/>
> http://JesusnJim.com <http://jesusnjim.com/> (my personal site, has
> software)
> ---
> IEC Units: Computer RAM & SSD measurements, microsoft disk size
> measurements (note: they will say GB or MB or KB or TB when it is IEC
> Units!):
> [KiB] [MiB] [GiB] [TiB]
> [2^10B=1,024^1B=1KiB]
> [2^20B=1,024^2B=1,048,576B=1MiB]
> [2^30B=1,024^3B=1,073,741,824B=1GiB]
> [2^40B=1,024^4B=1,099,511,627,776B=1TiB]
> [2^50B=1,024^5B=1,125,899,906,842,624B=1PiB]
> SI Units: Hard disk industry disk size measurements:
> [KB] [MB] [GB] [TB]
> [10^3B=1,000B=1KB]
> [10^6B=1,000,000B=1MB]
> [10^9B=1,000,000,000B=1GB]
> [10^12B=1,000,000,000,000B=1TB]
> [10^15B=1,000,000,000,000,000B=1PB]
>
>
>
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to