redefinition of typedef

前端 未结 7 1008
北荒
北荒 2020-12-15 05:54

I am possibly doing this incorrectly and this is much a question about why it works in one compiler and not the other.

I have a large C application, and I am

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 06:28

    You are redefining A and B by writing the same statement in several header files. One solution would be to drop the typedef of A and B from the A.h and B.h and use your C.h as it is.

提交回复
热议问题