g++ - C++11 on Cloud9 IDE -
when run g++ --version
on in cloud9 terminal g++ (gcc) 4.4.7 20120313 (red hat 4.4.7-3)
. old version - old enough when try use c++11 library features std::unordered_set
, get: "this file requires compiler , library support upcoming iso c++ standard, c++0x. support experimental, , must enabled -std=c++0x or -std=gnu++0x compiler options."
i'm not okay this, because don't having worry features i'm allowed use , ones need avoid. went looking around how update g++ latest stable version (which seems 4.8.1 of writing), can't figure out how it. tried apt-get
, got error: "sorry, apt-get not supported on system. try c9pm instead."
. tried that, c9pm list
(which supposed "list available packages"
) doesn't show looks g++. i'm lost.
how install g++ 4.8.1 on cloud9?
when run lsb_release -a
see cloud9 ide runs on "red hat enterprise linux server release 6.4 (santiago)"
.
if choose c/c++ project type new project newer gcc version (currently 4.7.2). if need newer 1 let know , can update version. can try compile tools need on workspace in case of gcc might take ages.
Comments
Post a Comment