cstdint can only be included when using -std=gnu++0x flag for g++

Bug #715838 reported by Troels Blum
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gcc-4.4 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: libstdc++6-4.4-dev

/usr/include/c++/4.4/cstdint contains:
#ifndef __GXX_EXPERIMENTAL_CXX0X__
# include <c++0x_warning.h>
#endif
 So when including cstdint and running g++ with default settings you get the following error:
In file included from /usr/include/c++/4.4/cstdint:35,
...
/usr/include/c++/4.4/c++0x_warning.h:31: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.

This may be an upstream bug for the GCC people

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gcc-4.4 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.