[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: uint64_t fails with C++ (again)
From: |
Werner LEMBERG |
Subject: |
Re: uint64_t fails with C++ (again) |
Date: |
Fri, 07 Feb 2014 08:24:09 +0100 (CET) |
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
- uint64_t fails with C++ (again), Werner LEMBERG, 2014/02/06
- Re: uint64_t fails with C++ (again), Paul Eggert, 2014/02/07
- Re: uint64_t fails with C++ (again),
Werner LEMBERG <=
- Re: uint64_t fails with C++ (again), Paul Eggert, 2014/02/07
- Re: uint64_t fails with C++ (again), Werner LEMBERG, 2014/02/07
- Re: uint64_t fails with C++ (again), Paul Eggert, 2014/02/07
- Re: uint64_t fails with C++ (again), Werner LEMBERG, 2014/02/07
- Re: uint64_t fails with C++ (again), Werner LEMBERG, 2014/02/07
- Re: uint64_t fails with C++ (again), Werner LEMBERG, 2014/02/15