[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
uint64_t fails with C++
From: |
Werner LEMBERG |
Subject: |
uint64_t fails with C++ |
Date: |
Wed, 07 Dec 2011 13:17:29 +0100 (CET) |
[In case you receive this mulitple times, sorry for that.]
In my configure.ac file I have
AC_PROG_CC
AC_PROG_CPP
AC_TYPE_UINT64_T
In my C file I have
#include <config.h>
#if HAVE_STDINT_H
# include <stdint.h>
#endif
#if defined UINT64_MAX || defined uint64_t
typedef uint64_t TA_ULongLong;
#else
# error "No unsigned 64bit wide data type found."
#endif
following the advice given in the autoconf info file, and everything's
fine if I compile with gcc.
Configuring with CC=g++ (I have version 4.6.2) on my GNU/Linux box
works just fine, however, compilation of the above snippet fails with
error: #error "No unsigned 64bit wide data type found."
How comes?
Werner
- Re: uint64_t fails with C++, (continued)
- Re: uint64_t fails with C++, Bob Friesenhahn, 2011/12/07
- Re: uint64_t fails with C++, Ben Pfaff, 2011/12/07
- Re: uint64_t fails with C++, Peter O'Gorman, 2011/12/07
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07
- Re: uint64_t fails with C++, Eric Blake, 2011/12/07
- Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07
uint64_t fails with C++, Werner LEMBERG, 2011/12/07
uint64_t fails with C++,
Werner LEMBERG <=
Re: uint64_t fails with C++, Werner LEMBERG, 2011/12/07