Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

extensible.h missing stdint.h include? #102

Closed
kshade opened this Issue · 6 comments

4 participants

@kshade

Hi,

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

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

@kaniini

actually, should be included.

@kaniini

erm. actually <cstdint> should be included.

@kshade

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

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

@attilamolnar
Owner

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

@Shawn-Smith Shawn-Smith referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.