error: conflicting types for 'f' and previous declaration of 'f' was here

前端 未结 3 854
广开言路
广开言路 2021-01-06 20:38

This code is just a situation that I found in my actual code which is very big so I\'m giving this.here in this code the structure \"struct node\" is not defined it

3条回答
  •  失恋的感觉
    2021-01-06 21:08

    In your test2.h you have declared f as extern, that's why you are getting the error. In test.c there is no extern declaration in prototype.

提交回复
热议问题