我有一个C ++程序,我想编出来的std ::退出,用我自己的,即通过:
-Dexit=myExit
但是,我碰到这个问题:
In file included from /usr/include/c++/7/ext/string_conversions.h:41:0,
from /usr/include/c++/7/bits/basic_string.h:6352,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from tests/helpers.h:4,
from tests/helpers.cpp:1:
/usr/include/c++/7/cstdlib:146:11: error: ‘::exit’ has not been declared
using ::exit;
我跑这VirtualBox上:Ubuntu的18.04 / 18.10 / 10的Debian