error C2065: “uint16_t”: 未声明的标识符

 VS2010及之后版本直接添加#include <stdint.h>  ,2010之前的版本的安装目录下没有stdint.h,可以在高版本VS中输入 uint16_t 有点转到定义,将定义部分复制到低版本VS中即可使用。

1 typedef signed char        int8_t;
2 typedef short              int16_t;
3 typedef int                int32_t;
4 typedef long long          int64_t;
5 typedef unsigned char      uint8_t;
6 typedef unsigned short     uint16_t;
7 typedef unsigned int       uint32_t;
8 typedef unsigned long long uint64_t;
View Code

 

posted @ 2020-03-21 16:28  KwinWei  阅读(3359)  评论(0编辑  收藏  举报