这个错误是因为代码中调用了一个未声明的函数reallocarray(),在ISO C99标准及以后的版本中,不支持隐式函数声明。

要修复这个错误,需要在文件的头部添加#include<stdlib.h>,这样就可以使用reallocarray()函数了。如果程序中有其他需要的函数,也需要在头部添加相应的头文件。

如何修复error call to undeclared function reallocarray; ISO C99 and later do not support implicit function declarations -Wimplicit-function-declaration

原文地址: https://www.cveoy.top/t/topic/bx3w 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录