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 
> <bug-gnulib@gnu.org>."
> 
> I think it's because of this in /usr/include/stdint.h:
> 
> /* The ISO C99 standard specifies that in C++ implementations these
>    macros should only be defined if explicitly requested.  */

ISO C99 is not the C++ spec, and C++11 specifically states that
__STDC_LIMIT_MACROS is not required.  You are probably running into
fallout from our recent patches to make things available on C++
regardless of whether glibc followed the C++11 recommendations:

https://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00085.html

Are you sure you are using the latest gnulib sources, and that your
program included <config.h> first?  Can you provide the actual test case
you used to provoke the compilation failure?

-- 
Eric Blake   ebl...@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to