比较老的代码。
/usr/include/c++/8/cstdlib:144:11: error: ‘::calloc’ has not been declared
using ::calloc;
^~~~~~
/usr/include/c++/8/cstdlib:148:11: error: ‘::getenv’ has not been declared
using ::getenv;
^~~~~~
/usr/include/c++/8/cstdlib:151:11: error: ‘::malloc’ has not been declared
using ::malloc;
^~~~~~
/usr/include/c++/8/cstdlib:164:11: error: ‘::realloc’ has not been declared
using ::realloc;
^~~~~~~
In file included from /home/a/demo1/code1/terrain/terrain.cpp:15:
/usr/include/c++/8/stdlib.h:59:12: error: ‘std::calloc’ has not been declared
using std::calloc;
^~~~~~
/usr/include/c++/8/stdlib.h:62:12: error: ‘std::getenv’ has not been declared
using std::getenv;
^~~~~~
/usr/include/c++/8/stdlib.h:65:12: error: ‘std::malloc’ has not been declared
using std::malloc;
^~~~~~
/usr/include/c++/8/stdlib.h:73:12: error: ‘std::realloc’ has not been declared
using std::realloc;
^~~~~~~
--
FROM 221.218.138.*