uint8_t是多少位,uint16_t是什么
windows系统解决方案:
添加头文件:
# includewtypes.h # defineulongulong # defineuintuinterrorc 2065:“uint8_ t”:未声明的标识符参考: http://blog.csdn.net
由于未定义uint32_t和uint8_t,因此在添加定义后编译成功。
# if _ MSC _ ver 1600//visual studio 2008 andolderdoesn ' 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
在visual studio中添加stdint.h即可
VC2008 error :uint8_t、uint16_t ……无法识别,未定义