Re: uint64_t fails with C++ (again)

2014-02-14 Thread Werner LEMBERG
>>> I tend to work around these sorts of glitches using Gnulib; its >>> stdint module fixes the portability problem with >>> __STDC_LIMIT_MACROS that I know about. Admittedly Gnulib is not >>> for everybody. >> >> Hehe. I use gnulib, so this is just fine for me. > > Will test `stdint' module so

Re: uint64_t fails with C++ (again)

2014-02-07 Thread Werner LEMBERG
>> I tend to work around these sorts of glitches using Gnulib; its >> stdint module fixes the portability problem with >> __STDC_LIMIT_MACROS that I know about. Admittedly Gnulib is not >> for everybody. > > Hehe. I use gnulib, so this is just fine for me. Will test `stdint' module soon – I've

Re: uint64_t fails with C++ (again)

2014-02-07 Thread Werner LEMBERG
>> Will this problem be handled in a forthcoming autoconf release? > > I'm afraid I don't understand the problem yet, as your original > email defined __STDC_LIMIT_MACROS, but now you're saying that > -D__STDC_LIMIT_MACROS fixes the problem. Indeed, doing ./configure CC=g++ CPPFLAGS="-D__STDC

Re: uint64_t fails with C++ (again)

2014-02-07 Thread Paul Eggert
Werner LEMBERG wrote: Will this problem be handled in a forthcoming autoconf release? I'm afraid I don't understand the problem yet, as your original email defined __STDC_LIMIT_MACROS, but now you're saying that -D__STDC_LIMIT_MACROS fixes the problem. That being said, my guess is that it's

Re: uint64_t fails with C++ (again)

2014-02-07 Thread Werner LEMBERG
>> Repeating your test verbatim I get the #error message! > > How about if you compile with the following command instead? > > g++ -D__STDC_LIMIT_MACROS -c t.cc > > That fixes the problem on RHEL 6.4, anyway. It works for me, too. Will this problem be handled in a forthcoming autoconf release

Re: uint64_t fails with C++ (again)

2014-02-07 Thread Paul Eggert
Werner LEMBERG wrote: Repeating your test verbatim I get the #error message! I'm not too surprised, since you're probably using a pre-C++11 system. I get the same #error on RHEL 6.4, which uses g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3), which is older even than your compiler. How about if

Re: uint64_t fails with C++ (again)

2014-02-06 Thread Werner LEMBERG
Hello Paul! >> neither `UINT64_MAX' nor `uint64_t' gets define > > That's odd, because UINT64_MAX is defined for me, even for this > much-simpler program: > > #include > #ifdef UINT64_MAX > typedef uint64_t TA_ULongLong; > #else > # error "No unsigned 64bit wide data type found." > #endif > >

Re: uint64_t fails with C++ (again)

2014-02-06 Thread Paul Eggert
Werner LEMBERG wrote: neither `UINT64_MAX' nor `uint64_t' gets define That's odd, because UINT64_MAX is defined for me, even for this much-simpler program: #include #ifdef UINT64_MAX typedef uint64_t TA_ULongLong; #else # error "No unsigned 64bit wide data type found." #endif If I put this