extensible.h missing stdint.h include? #102

kshade opened this Issue Apr 26, 2012 · 6 comments


None yet
4 participants

kshade commented Apr 26, 2012


I'm getting

An error occured when executing: g++ -o obj/bancache.o -pipe -fPIC -DPIC -pedantic -Woverloaded-virtual -Wshadow -Wformat=2 -Wmissing-format-attribute -Wall -O2 -g1 -Iinclude -c /home/kshade/build/x/inspircd/src/bancache.cpp
In file included from include/inspircd.h:64:0,
                 from /home/kshade/build/x/inspircd/src/bancache.cpp:16:
include/extensible.h:152:2: error: ‘intptr_t’ does not name a type
include/extensible.h:153:2: error: ‘intptr_t’ does not name a type

on Arch Linux with GCC 4.7 unless I add

#include <stdint.h>

to the top of the file.

joshtwo commented Apr 26, 2012

You coincidentally ran into the same problem I did on the same distro on the same day.


kaniini commented Apr 26, 2012

actually, should be included.


kaniini commented Apr 26, 2012

erm. actually <cstdint> should be included.

kshade commented Apr 27, 2012

That leads to

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

kaniini commented Apr 27, 2012

Yes, -std=gnu++11 should be used on GCC 4.7 or later.


attilamolnar commented Jul 6, 2012

merged suggested fix by @kshade, we'll address C++11 support in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment