autoconf
[Top][All Lists]
Advanced

[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 10:17:04 +0100 (CET)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]