我在STM32F7上实现了LwIP。我有一个问题。当我包括
#include "lwip.h"
我收到此警告:“ s32_t”的类型冲突
它在cc.h文件中:
typedef signed long s32_t;
这是有问题的图片:https://imgur.com/a/wkERF
有什么问题,我该如何解决?
最佳答案
s32_t
可能已在您包含的头文件之一中定义。尝试从typedef signed long s32_t;
删除cc.h
和其他类似的行。
此错误可以通过以下两行简单地重现。
typedef signed int s32_t;
typedef signed long s32_t;
Live demonstration here
还要在
s32_t
和lwip.h
中搜索cc.h
的typedef,这应该为您提供进一步的线索。