编译 libiconv-1.14 的时候出现 ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
2016-07-18 18:43
615 查看
编译 libiconv-1.14 的时候提示函数未定义:
./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
cd 到 libiconv-1.14/srclib/stdio.h,打开
定位到 1010 行,发现是一个函数指针参数的宏函数:
文 http://blog.csdn.net/ownfire/article/details/47276219 给出了一种解决方法。还有一种更简单的解决方法就是注释:
./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
cd 到 libiconv-1.14/srclib/stdio.h,打开
sudo gedit stdio.h
定位到 1010 行,发现是一个函数指针参数的宏函数:
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
文 http://blog.csdn.net/ownfire/article/details/47276219 给出了一种解决方法。还有一种更简单的解决方法就是注释:
---1010: _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +++1010: //_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
相关文章推荐
- php中字符集转换iconv函数使用总结
- php使用iconv中文截断问题的解决方法
- PHP通过iconv将字符串从GBK转换为UTF8字符集
- linux系统上支持php的 iconv()函数的方法
- PHP下编码转换函数mb_convert_encoding与iconv的使用说明
- php 转换字符串编码 iconv与mb_convert_encoding的区别说明
- php iconv() : Detected an illegal character in input string
- php中iconv函数使用方法
- 在输入输出字符串时scanf(),printf()和gets(),puts()的区别浅谈
- shell脚本中使用iconv实现批量文件转码的代码分享
- 使用iconv批量改变文件编码的shell脚本
- PHP中mb_convert_encoding与iconv函数的深入解析
- PHP中iconv函数转码时截断字符问题的解决方法
- linux下为php添加iconv模块的方法
- PHP中iconv函数知识汇总
- php使用iconv中文截断问题的解决方法
- error C2440: ‘static_cast‘ LRESULT LRESULT错误
- scanf&getchar&gets及一些特殊用法
- Linux下批量转换到utf-8编码的问题
- cin、cin.get()、cin.getline()、getline()、gets()等函数的用法