今天在linux中使用个g++编译一个名为myfirst.cpp的代码的时候,出现如下错误 myfirst.cpp: In function ‘int main()’: myfirst.cpp:11:2: warning: ‘char* gets(char*)’ is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations] gets(cc); ^ myfirst.cpp:11:9: warning...
make报错: ./stdio.h:1010:1: 错误: ‘gets’未声明(不在函数内)make[2]: ***[progname.o]错误1make[2]:正在离开目录`/home/lmos/libiconv-1.14/srclib' make[1]: ***[all]错误 2make[1]:正在离开目录`/home/lmos/libiconv-1.14/srclib' make: ***[all]错误2 1. 2. 3. 4. 5. 解决: ...
解决Centos7编译编译libiconv解决./stdio.h:1010:1: 错误: ‘gets’未声明(不在函数内 方法一:删除文件:stdio.in.h文件 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"),如下命令: cd libiconv-1.14/srclib sed -i -e '/gets is a security/d' ./stdio.in.h 方法二:...
g++编译代码时gets函数有错误.docx,PAGE PAGE 1 linux下使用gcc/g++编译代码时gets函数有错误 myfirst.cpp: In function int main() : myfirst.cpp:11:2: warning: char* gets(char*) is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations] ge
./stdio.h:1010:1: 错误: ‘gets’未声明(不在函数内) make[2]: *** [progname.o] 错误 1 make[2]:正在离开目录 `/home/lmos/libiconv-1.14/srclib' make[1]: *** [all] 错误 2make[1]:正在离开目录 `/home/lmos/libiconv-1.14/srclib' ...
解决Centos7编译编译libiconv解决./stdio.h:1010:1: 错误: ‘gets’未声明(不在函数内 方法一:删除文件:stdio.in.h文件 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"),如下命令: cd libiconv-1.14/srclib sed -i -e '/gets is a security/d' ./stdio.in.h...