Iphone _int64不命名类型
在我的pch文件中,我有以下定义:Iphone _int64不命名类型,iphone,int64,pch,Iphone,Int64,Pch,在我的pch文件中,我有以下定义: #if (_MSC_VER < 1300) typedef signed char int8_t; typedef signed short int16_t; typedef signed int int32_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsign
#if (_MSC_VER < 1300)
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
#else
typedef signed __int8 int8_t;
typedef signed __int16 int16_t;
typedef signed __int32 int32_t;
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
#endif
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;
这表示,\u int64没有命名类型。可能是什么问题?看起来您正在尝试将MSVC特定的
\uu int64
类型与GCC一起使用。这不起作用,请改用long
。添加此include
#include <inttypes.h>
#包括
然后使用uint64或int64
见下文
#include <inttypes.h>
#if (_MSC_VER < 1300)
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
#else
typedef signed __int8 int8_t;
typedef signed __int16 int16_t;
typedef signed __int32 int32_t;
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
#endif
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;
#包括
#如果(_MSC_VER<1300)
typedef签名字符int8;
typedef签名短整数;
typedef签名int int32_t;
typedef无符号字符uint8;
typedef无符号短uint16_t;
typedef unsigned int uint32\u t;
#否则
typedef签名uu int8 int8 t;
typedef签名uu int16 int;
typedef签名uu int32 int32 t;
typedef unsigned uu int8 uint8;
typedef unsigned\uu int16 uint16\u t;
typedef无符号输入32 uint32;
#恩迪夫
typedef签名uu int64 int64 t;
typedef unsigned\uu int64 uint64\u t;
实际上我是在编写代码。不需要编写typedef signed\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
#include <inttypes.h>
#if (_MSC_VER < 1300)
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
#else
typedef signed __int8 int8_t;
typedef signed __int16 int16_t;
typedef signed __int32 int32_t;
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
#endif
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;