uint8_t和uint32_报错问题笔记
问题代码如下:
#define __u32 uint32_t
#define __u8 uint8_t
uint8_t *annexBHeader;
size_t annexBHeaderLen;
size_t nalSize;
Linux下编译:
加了#include <sys/types.h>还是会报错,于是我注掉了__u32和__u8,
加上#include <stdint.h>就OK了
uint8_t和uint32_报错问题笔记
问题代码如下:
#define __u32 uint32_t
#define __u8 uint8_t
uint8_t *annexBHeader;
size_t annexBHeaderLen;
size_t nalSize;
加了#include <sys/types.h>还是会报错,于是我注掉了__u32和__u8,
加上#include <stdint.h>就OK了