问题描述
link3.c: In function ‘createLink’:
link3.c:30:7: warning: assignment makes pointer from integer without a cast [enabled by default]
link3.c: At top level:
link3.c:33:14: error: conflicting types for ‘addLinkbehind’link3.c:30:9: note: previous implicit declaration of ‘addLinkbehind’ was here
例如:在函数createLink()’
中调用
‘addLinkbehind()’
函数,如果函数‘
addLinkbehind()'函数在'createLink()'之前的话,就会出现上面类似的错误。
原因分析:
函数嵌套调用的时候没有声明的同时也没有注意函数的优先顺序造成这种错误!
解决方案:
提前声明函数或者嵌套调用的函数在此函数之前。