C++11 将CodeLite指向新编译器(GCC 4.8.x)

C++11 将CodeLite指向新编译器(GCC 4.8.x),c++11,compiler-construction,g++,codelite,C++11,Compiler Construction,G++,Codelite,我在Ubuntu12.04 LTS上运行5.2(从13.04降级,现在有一些稳定性问题) 我刚刚安装了GCC4.8编译器,它不是12.04上的默认GCC编译器。我需要这个编译器得到所有C++ 11的特性,它是默认的,编译器是13.04,使用'-STD+C++ 11’开关。 现在我已经安装了4.8编译器,但我不知道如何告诉CodeLite使用该编译器,而不是12.04(4.4.x?)附带的默认GCC编译器。我如何做到这一点呢?我刚刚通过阅读你的问题发现了存在 我很快就找到了答案 只需遵循它们,用g

我在Ubuntu12.04 LTS上运行5.2(从13.04降级,现在有一些稳定性问题)

我刚刚安装了GCC4.8编译器,它不是12.04上的默认GCC编译器。我需要这个编译器得到所有C++ 11的特性,它是默认的,编译器是13.04,使用'-STD+C++ 11’开关。
现在我已经安装了4.8编译器,但我不知道如何告诉CodeLite使用该编译器,而不是12.04(4.4.x?)附带的默认GCC编译器。我如何做到这一点呢?

我刚刚通过阅读你的问题发现了存在

我很快就找到了答案

只需遵循它们,用
gcc-4.8
(或你的
gcc
4.8的完整路径)代替
clang
,用
g++-4.8
代替
clang++


顺便说一句,我希望您在编译GCC 4.8.1时,在其
…/configure
脚本中使用了
--program suffix=-4.8
选项。

来自我们办公室的Linux专家:

这些命令应以超级用户身份运行(
sudo
):


我会退房的。IMO CIEDLITE是目前最好的开源C++ IDE。做了很多Code::Blocks没有做的事情,特别是重构选项和类生成向导,等等。Qt也表现得更好。将检查您的链接。(我很懒得找东西…)我不需要编译GCC4.8-看看这个。林克已经4个月大了,我用4.8代替了4.7的能力测试,结果成功了。
apt-get install g++-4.8.1

update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 100

update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8.1 50

update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 100

update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8.1 50

update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.6 100

update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.8.1 50

update-alternatives --set g++ /usr/bin/g++-4.8.1

update-alternatives --set gcc /usr/bin/gcc-4.8.1

update-alternatives --set cpp-bin /usr/bin/cpp-4.8.1