error: conflicting types for ‘getline’

来源:互联网 发布:编程让div显现出边框 编辑:程序博客网 时间:2024/05/29 14:46


    错误:651: note: previous declaration of ‘getline’ was here

error: conflicting types for ‘getline’

651: note: previous declaration of ‘getline’ was here

pattern.c: In function ‘getline’:


原因:getline和系统定义的getline()函数冲突。把名字改一下就好了。


原创粉丝点击