Spec2006 编译错误 md5sum.c: conflicting types for 'getline'
来源:互联网 发布:淘宝经常给差评会怎样 编辑:程序博客网 时间:2024/05/16 08:35
参考:getline conflicting
问题来源: spec2006 编译的过程中出现如下错误
In file included from md5sum.c:38:0:lib/getline.h:31:1: error: conflicting types for 'getline'/usr/include/stdio.h:675:20: note: previous declaration of 'getline' was herelib/getline.h:34:1: error: conflicting types for 'getdelim'/usr/include/stdio.h:665:20: note: previous declaration of 'getdelim' was here
解决方法: 出现这个错误主要是由于stdio.h库已经定义getline和getdelim函数,而spec中的getline.h中也定义了该函数,从而造成冲突。
现在只需要将getline.h和getline.c中所有的getline和getdelim函数更改为自定的函数名称即可,例如get_line(…)和getdelim(…)等。
0 0
- Spec2006 编译错误 md5sum.c: conflicting types for 'getline'
- error: conflicting types for ‘getline’
- C语言“conflicting types for ...” 错误
- 《C程序设计语言》示例报错“conflicting types for ‘getline’”勘误
- conflicting types for xx错误
- conflicting types for xx错误
- conflicting types for xx错误
- conflicting types for xx错误
- 关于“error: conflicting types for 'function'”编译错误的分析
- 关于”error conflicting types for function”编译错误的分析
- 编译时提示 conflicting types for 错误的解决办法
- conflicting types for xx错误(转)
- 关于错误提示conflicting types for "XXX"
- Keil编译时,提示“error:conflicting types for XXX”错误及处理方法
- Xcode编译报错: Conflicting types for 'areIntsDifferentt' Conflicting types for 'boolString'
- conflicting types for 'wchar_t'
- conflicting types for ...
- conflicting types for。。。。。。
- ruby安装
- C++ Primer Plus第六版编程练习12.5解答
- sdwebimage缓存图片对比问题
- 网络流24题---餐巾纸
- Android面试之synchronized关键字详解
- Spec2006 编译错误 md5sum.c: conflicting types for 'getline'
- gradle is stuck on dependency resolution
- 21个免费的UI界面设计工具、资源及网站
- DFS Word Search
- java 饥饿和公平
- [leetcode] 62.Unique Paths
- 莫比乌斯反演两道题
- 持久化存储--1、文件存储
- json数组转换成字符串数组