编译 libiconv-1.14 的时候提示函数未定义:
./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
定位到 1010 行,发现是一个函数指针参数的宏函数:
文 http://blog.csdn.net/ownfire/article/details/47276219 给出了一种解决方法。还有一种更简单的解决方法就是注释:
./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
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");