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
_______________________________________________
Autoconf mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/autoconf