У меня есть программа на С ++, где я хочу скомпилировать std :: exit и использовать свою собственную, то есть с помощью:
-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 / Debian 10