Re: uint64_t fails with C++ (again)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <stdint.h>
> #ifdef UINT64_MAX
> typedef uint64_t TA_ULongLong;
> #else
> # error "No unsigned 64bit wide data type found."
> #endif
> 
> If I put this into a file "t.cc", the command "g++ -c t.cc" works just
> fine.  I'm using Fedora 20, which has g++ (GCC) 4.8.2 20131212 (Red
> Hat 4.8.2-7).

Repeating your test verbatim I get the #error message!  This is

  g++ (SUSE Linux) 4.7.2 20130108 [gcc-4_7-branch revision 195012]
  Copyright (C) 2012 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

So maybe I'm hitting a bug in the 4.7 series of gcc that has been
fixed meanwhile?

> Maybe you didn't define HAVE_STDINT_H?

HAVE_STDINT_H is defined as 1 in `config.h'.


    Werner

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux