环境:centos 7.1
In file included from progname.c:26:0: ./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ^ make[2]: *** [progname.o] Error 1 make[2]: Leaving directory `/root/libiconv-1.14/srclib‘ make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/libiconv-1.14/srclib‘ make: *** [all] Error 2
进入srclib目录 执行 sed -i -e ‘/gets is a security/d‘ ./stdio.in.h
时间: 2024-10-28 19:28:05