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

心已入冬 提交于 2019-12-19 07:09:11

问题


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.


回答1:


It is forcefully disabled in RHEL6/7.

https://bugzilla.redhat.com/show_bug.cgi?id=1546704



来源:https://stackoverflow.com/questions/47951367/d-glibcxx-use-cxx11-abi-1-ineffective-for-devtoolset-7-on-centos-7

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!