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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM