According to the C++11 standard: "The macros defined by 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) |
Try to define __STDC_FORMAT_MACROS before include .
--
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.
I discovered the problem, it is the fact that the macros are not defined if
C++ is being used. this locks out C++.
#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS)
i think it has to do with the C99 standard.
>
> From: Óscar Fuentes
>To: mingw-w64-
Jim Michaels writes:
> printf("abc%" "I64u" "def", 12);
> ^
> inttypes-strings.cpp:5:19: error: expected ')' before 'PRSIu64'
> printf("abc%" PRSIu64 "def", 12);
> ^
> inttypes-strings.cpp:5:36: warning: spurious trailing '%' in form
printf("abc%" "I64u" "def", 12);
^
inttypes-strings.cpp:5:19: error: expected ')' before 'PRSIu64'
printf("abc%" PRSIu64 "def", 12);
^
inttypes-strings.cpp:5:36: warning: spurious trailing '%' in format [-Wformat=]
printf("abc%" P
2014-06-21 18:10 GMT+02:00 André Hentschel :
> Am 21.06.2014 17:10, schrieb André Hentschel:
>> Hi,
>> this time i just put some commits on github for review [1],
>> so please review, then i'll commit it except of the temporary tests.
>> (btw, this is the work of more than two weeks...)
>>
>> [1] h
#include
#include
#include
#include
if (aprIECPrefixesi.size()!=aprIECPowersi.size() )
{printf("%s:%u:programmer mismatch ERROR, aprIECPrefixesi.len=%" PRIu64
",aprIECPowersi.len=%" PRIu64 ", notify jmich...@yahoo.com of this message\n",
__FILE__, __LINE__, apr
Am 21.06.2014 17:10, schrieb André Hentschel:
> Hi,
> this time i just put some commits on github for review [1],
> so please review, then i'll commit it except of the temporary tests.
> (btw, this is the work of more than two weeks...)
>
> [1] https://github.com/AndreRH/mingw-w64/commits/master
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
this time i just put some commits on github for review [1],
so please review, then i'll commit it except of the temporary tests.
(btw, this is the work of more than two weeks...)
[1] https://github.com/AndreRH/mingw-w64/commits/master
-BEGIN P