./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
来源:互联网 发布:numbers for mac 编辑:程序博客网 时间:2024/06/05 22:49
解压执行configure,提示:
./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”);
报错说gets没有声明到神马神马的,请用fgets替换,在C89以上,gets是不推荐用的啦,我们在本目录中执行:
vi srclib/stdio.in.h文件,接着搜索到:
_GL_WARN_ON_USE (gets, “gets is a security hole - use fgets instead”); 这一行,然后把这个替换成:
#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); #endif
0 0
- ./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
- ./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
- 解决编译libiconv时报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- 源码编译安装 libiconv-1.14 报:./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function) [
- 编译 libiconv-1.14 的时候出现 ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- 编译安装libiconv报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- Ubuntu14.04_64编译libiconv出问题 ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- 解决nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a function)的问题
- 解析linux patch(解决报错./stdio.h:456:1: error: 'gets' undeclared here (not in a function))
- 在ubuntu上编译toolchain时出错./stdio.h:477: error: 'gets' undeclared here (not in a function)
- libiconv-1.14 error: ‘gets’ undeclared here (not in a function)
- `uint32_t' undeclared here (not in a function)
- PHP扩展开发报错解决[error: ‘PHP_FE_END’ undeclared here (not in a function)] .
- /phalcon.zep.c:130892: error: ‘ZEND_FE_END’ undeclared here (not in a function)
- /data/TestModule2/TestModule.c:26:25: error: ‘UTS_RELEASE’ undeclared here (not in a function) char
- 【SystemTap】 2.6.36 内核下运行SystemTap出现 error:‘param_ops_int64_t’ undeclared here (not in a function) 错误
- Android之ndk-build出现c:28:51: error: 'get_string' undeclared here (not in a function)解决办法
- php动态加载模块的时候出现PHP_FE_END’未声明(不在函数内) -----{error: ‘PHP_FE_END’ undeclared here (not in a function)}
- 高效率开发的Android Studio插件收集
- 搜索出现传递参数乱码的解决方法(一般是跨系统搜索)
- 解决ORA-00119 和ORA-00130问题
- [hihoCoder太阁最新面经算法竞赛2] 岛屿 (DFS,Hash Function)
- 字节对齐小结
- ./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
- 3. vSphere ESXi主机配置iSCSI存储
- ByteBuffer详解
- 关于 iOS 10 中 ATS 的问题
- Effetive Objective - C 1.Objective8.;理解对象等同性
- thinkphp多表查询两表有重复相同字段解决方法
- 自定义圆形progressbar 加 音量控制自定义view
- Kali基于字典的无线破解
- WEB开发--协议(转)