Review Request: Look for ext/hash_map and unordered_map instead of checking gcc's version.

Ivan Shapovalov intelfx100 at gmail.com
Tue May 29 12:55:31 UTC 2012


On 29 мая 2012 01:14:24 György Andrasek wrote:
> Breaks the build on GCC:
> > Building CXX object
> 
> language/CMakeFiles/kdevplatformlanguage.dir/backgroundparser/backgroundpars
> er.o
> > In file included from
> 
> /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../include/c++/4.6.3/unord
> ered_map:35:0,
> >                  from
> 
> /home/jurily/projects/extern/kdevplatform/language/editor/modificationrevisi
> on.cpp:31:
> 
> /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../include/c++/4.6.3/bits/
> c++0x_warning.h:32:2: 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.

You shall just add "-std=c++0x" option to your build flags. This can be done 
either by doing
# export CXXFLAGS="-std=c++0x"
prior to running cmake or defining the flag inside cmake, e. g.
# cmake -DCMAKE_CXX_FLAGS="-std=c++0x".
That should be enough.




More information about the KDevelop-devel mailing list