1

我正在尝试在我的项目中启用 vtable 验证。当我尝试使用标志 (-fvtable-verify=std) 时出现错误g++: error: -fvtable-verify=std is not supported in this configuration

你能帮我弄清楚出了什么问题吗?

[root@eaf114bcd5cc build-debug]# g++ -fvtable-verify=std temp.cc 
g++: error: -fvtable-verify=std is not supported in this configuration
[root@eaf114bcd5cc build-debug]# gcc --version
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  
There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@eaf114bcd5cc build-debug]# which gcc
/opt/rh/devtoolset-7/root/usr/bin/gcc 
4

0 回答 0