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,
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
to the top of the file.
You coincidentally ran into the same problem I did on the same distro on the same day.
actually, should be included.
erm. actually <cstdint> should be included.
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.
Yes, -std=gnu++11 should be used on GCC 4.7 or later.
#include <stdint.h>, add header guard to extensible.h
Fixes #102 reported by @kshade
merged suggested fix by @kshade, we'll address C++11 support in the future