If you are using c++ you are expected to #include<cinttypes> and #include
<cstdio> and use std::printf.
ISO C++ provides *.h for compatibility with ISO C only.
// -std=c++11 passed.
#include <cinttypes>
#include <cstdio>
int main(void) {
std::printf("abc%" PRIu64 "def", 12ull);
return 0;
}
------------------
Best regards,
lh_mouse
2014-06-22
-------------------------------------------------------------
发件人:Ivan Garramona <[email protected]>
发送日期:2014-06-22 12:03
收件人:mingw-w64-public
抄送:
主题:Re: [Mingw-w64-public] problem with compiler not concatenating
strings
According to the C++11 standard: "The macros defined by <cinttypes> are
provided unconditionally. In particular, the symbol __STDC_FORMAT_MACROS,
mentioned in footnote 182 of the C standard, plays no role in C++."
This checking should be something like:
#if !defined(__cplusplus) || (__cplusplus >= 201103L) ||
defined(__STDC_FORMAT_MACROS)
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public