gheap icon indicating copy to clipboard operation
gheap copied to clipboard

Compile errors: 'long long' is a C++11 extension

Open hildjj opened this issue 10 years ago • 0 comments

Platform: OSX 10.10.3 Compiler:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix

when compiling tests_cpp03, I get a bunch of errors of the following type:

g++ tests.cpp -Wall -Wextra -Werror -pedantic -std=c++98 -g -o tests_cpp03
In file included from tests.cpp:6:
In file included from ./galgorithm.hpp:14:
In file included from ./gheap.hpp:7:
./gheap_cpp03.hpp:56:26: error: 'long long' is a C++11 extension [-Werror,-Wc++11-long-long]
    assert(PageChunks <= SIZE_MAX / Fanout);

hildjj avatar May 08 '15 05:05 hildjj