您的位置:首页 > 产品设计 > UI/UE

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

2013-09-26 15:25 639 查看
参考: 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 ……未能识别,没有定义
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: