[Top][All Lists]

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

Re: inttypes.h compile error

From: Alexander V. Lukyanov
Subject: Re: inttypes.h compile error
Date: Fri, 16 Dec 2011 10:07:22 +0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Dec 15, 2011 at 11:50:23AM -0800, Paul Eggert wrote:
> On 12/15/11 04:50, Alexander V. Lukyanov wrote:
> > I get this message in a C++ program on linux (glibc-2.14).
> > 
> > ../lib/inttypes.h:58:3: error: #error "This file assumes that 'int' has 
> > exactly 32 bits. Please report your platform and compiler to 
> > <address@hidden>."
> Thanks for reporting that.  I installed the following patch
> to try to fix it.  Please give it a try.

This patch works if I use C++ compiler for AC_COMPILE tests.
Not if I use plain C.

> -#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ before C++11 */
> -#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ before C++11 
> */

BTW, in the file stdint.m4 there is another place with those macros.


reply via email to

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