I am using the ARM Compiler from Code Composer Studio and while updating lwIP from 1.4.1 to 2.0.0, I ran into a compilation issue. I get an error for size_t being undefined. Tracing the issue I was able to go past the issue by adding stdlib to arch.h
#if !LWIP_NO_STDINT_H
#include <stdint.h>
#include <stdlib.h>
typedef uint8_t u8_t;
typedef int8_t s8_t;
typedef uint16_t u16_t;
typedef int16_t s16_t;
typedef uint32_t u32_t;
typedef int32_t s32_t;
typedef uintptr_t mem_ptr_t;
#endif
"D:/ti/TivaWare_C_Series-2.1.3.156/third_party/lwip-2.0.0/src/include/lwip/def.h", line 124: error #20: identifier "size_t" is undefined