uint64_t fails with C++

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

 



[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

_______________________________________________
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