我在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_tlwip.h中搜索cc.h的typedef,这应该为您提供进一步的线索。

09-25 20:58