conflicting types for getline function

前端 未结 2 2093
误落风尘
误落风尘 2021-01-25 23:13

I have a function for getline function in my code block.But while compiling the make file i get the following error:

cc -DMAIN   -c -o terp.o terp.c
terp.c:130:1         


        
2条回答
  •  爱一瞬间的悲伤
    2021-01-25 23:57

    You need to choose a different name for your getline function, because there already is a getline in the standard clib.

提交回复
热议问题