Re: inttypes.h compile error

2011-12-15 Thread Paul Eggert
On 12/15/2011 10:07 PM, Alexander V. Lukyanov wrote: > This patch works if I use C++ compiler for AC_COMPILE tests. > Not if I use plain C. I don't observe that problem. Can you show how to reproduce it? >> -#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ before C++11 */ >> -#defin

Re: inttypes.h compile error

2011-12-15 Thread Alexander V. Lukyanov
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 pla

Re: inttypes.h compile error

2011-12-15 Thread Paul Eggert
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 > ." Thanks for reporting that. I installed th

Re: inttypes.h compile error

2011-12-15 Thread Eric Blake
On 12/15/2011 05:50 AM, 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 > ." > > I think it's because of this in /

inttypes.h compile error

2011-12-15 Thread Alexander V. Lukyanov
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 ." I think it's because of this in /usr/include/stdint.h: /* The ISO C99 standard specifies that in C++