首页 > 其他 > 详细

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

时间:2020-04-09 09:05:32      阅读:182      评论:0      收藏:0      [点我收藏+]

转载:https://blog.csdn.net/lys07962000/article/details/12052571

 

参考:
http://blog.csdn.net/chenxin_130/article/details/8580706

该错误由于uint32_t与uint8_t未定义造成,加入定义后编译成功。

#if _MSC_VER < 1600 // Visual Studio 2008 and older doesn‘t have stdint.h... 

 

typedef __int64 int64_t; 

typedef unsigned __int64 uint64_t; 

typedef unsigned __int32 uint32_t; 

typedef unsigned __int16 uint16_t; 

typedef unsigned __int8 uint8_t; 

 

#else  #include <stdint.h>  // 2010之前的版本的安装目录下没有该文件,

#endif  vs2010添加 stdint.h 就可以


VC2008 error :uint8_t , uint16_t ……未能识别,没有定义

 

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

原文:https://www.cnblogs.com/MCSFX/p/12664129.html

(1)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!