错误:651: note: previous declaration of ‘getline’ was here
error: conflicting types for ‘getline’
pattern.c: In function ‘getline’:
原因:getline和系统定义的getline()函数冲突。把名字改一下就好了。
本文解决了C语言中自定义getline函数与系统函数冲突的问题,通过更改函数名称实现。
错误:651: note: previous declaration of ‘getline’ was here
error: conflicting types for ‘getline’
pattern.c: In function ‘getline’:
原因:getline和系统定义的getline()函数冲突。把名字改一下就好了。
799
2177
3065

被折叠的 条评论
为什么被折叠?