redhat-dts

How to install GCC/G++ 8 on CentOS

别来无恙 提交于 2020-08-21 05:32:07
问题 I'm used to install packages on Debian/Ubuntu distributions, but now I need to install gcc and g++ version 8.*. There is only version 4.* in CentOS repositories. What's the correct way to install them manually? 回答1: CentOS 8 already comes with GCC 8. On CentOS 7, you can install GCC 8 from Developer Toolset. First you need to enable the Software Collections repository: yum install centos-release-scl Then you can install GCC 8 and its C++ compiler: yum install devtoolset-8-gcc devtoolset-8-gcc

-D_GLIBCXX_USE_CXX11_ABI=1 ineffective for devtoolset-7 on CentOS 7 [duplicate]

心已入冬 提交于 2019-12-19 07:09:11
问题 This question already has an answer here : (How) Can I use the new C++ 11 ABI with devtoolset-7 on Centos/RHEL? (1 answer) Closed last year . Recently, I noticed that my program has a big performance regression because the standard library implementation of gcc with version earlier than 5 makes list::size() an O(n). I'm using CentOS 7.2 whose default gcc version is 4.8.5. So I installed scl and devtoolset-7, and rebuilt my program. However, I found that list::size() in my program is still an

-D_GLIBCXX_USE_CXX11_ABI=1 ineffective for devtoolset-7 on CentOS 7 [duplicate]

Deadly 提交于 2019-12-01 05:18:43
This question already has an answer here: (How) Can I use the new C++ 11 ABI with devtoolset-7 on Centos/RHEL? 1 answer Recently, I noticed that my program has a big performance regression because the standard library implementation of gcc with version earlier than 5 makes list::size() an O(n) . I'm using CentOS 7.2 whose default gcc version is 4.8.5. So I installed scl and devtoolset-7, and rebuilt my program. However, I found that list::size() in my program is still an O(n) method, even if I explicitly make _GLIBCXX_USE_CXX11_ABI to 1. Why? It's odd. It is forcefully disabled in RHEL6/7.