无法使用-fvtable-verify构建C ++二进制文件

时间:2018-10-12 21:57:29

标签: c++ vtable gcc7 devtoolset

我正在尝试在我的项目中启用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 

0 个答案:

没有答案