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 ……未能识别,没有定义
该错误由于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: “SHELLEXECUTEINFO”: 未声明的标识符
- error C2065: “GWL_HINSTANCE”: 未声明的标识符
- MFC 错误异常,用vs添加资源并为资源定义类后报错:error C2065 : 未声明的标识符
- error C2065: “IDC_PORT”: 未声明的标识符
- error C2065: “IDD_DIALOG1” : 未声明的标识符
- error C2065: “Count”: 未声明的标识符
- error C2065: “IDD_DIALOG1”: 未声明的标识符 .
- error C2065: “iDone”: 未声明的标识符
- error C2065: “IActiveDesktop” : 未声明的标识符
- error C2065: “vector”: 未声明的标识符
- error C2065: “endl”: 未声明的标识符
- error C2065: “_lpw”: 未声明的标识符
- error C2065: “CString”: 未声明的标识符 ;fatal error C1189: #error : afxstr.h can only be used in MFC proje
- 解决error C2065:"..."未声明的标识符,C2065:语法错误: 标识符“...”
- error C2065: “dllexport”: 未声明的标识符
- error C2065: “CRegKey”: 未声明的标识符
- error C2065: “GWL_WNDPROC”: 未声明的标识符
- error C2065: “IAcadPreferences”: 未声明的标识符
- error C2065: “LOAD_LIBRARY_SEARCH_SYSTEM32”: 未声明的标识符
- error C2065: “IDD_DIALOG1” : 未声明的标识符