6410_io_drv.c: error: invalid operands to binary << (have 'char *' and 'int') 错误处理
2013-05-17 16:39
561 查看
6410_io_drv.c: line: error: invalid operands to binary << (have 'char *' and 'int')
的错误处理:
#define GPH_MAGIC 'b'//这里原来为“b”
#define GPH_IO(num) _IO(GPH_MAGIC,num)
#define GPH6_ON GPH_IO(1)
#define GPH6_OFF GPH_IO(2)
#define GPH7_ON GPH_IO(3)
#define GPH7_OFF GPH_IO(4)
魔数要用单引号。
好低级的错误
的错误处理:
#define GPH_MAGIC 'b'//这里原来为“b”
#define GPH_IO(num) _IO(GPH_MAGIC,num)
#define GPH6_ON GPH_IO(1)
#define GPH6_OFF GPH_IO(2)
#define GPH7_ON GPH_IO(3)
#define GPH7_OFF GPH_IO(4)
魔数要用单引号。
好低级的错误
相关文章推荐
- error: invalid operands of types 'int()' and 'int' to binary 'operator%'
- ERROR:invalid operands to binary -
- Swift Compiler Error Binary oprator '+' cannot be applied to operands of type 'UInt16' and 'UInt8'
- Invalid operands to binary expression ('double' and 'double’)
- iPhone实例学习之iphone sdk2.0 miss和invalid operands to binary问题
- gcc编译出现 invalid operands to binary -的解决方法
- Swift中推送通知设置:Binary operator '|' cannot be applied to two UIUserNotificationType operands 错误解决
- error: invalid cast from type _gnu_cxx::__normal_iterator<> to unsigned char*
- ios错误<Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set
- IOError: [Errno 22] invalid mode ('r') or filename;错误的处理方法
- keil(MDK)中出现error: #513: a value of type "int" cannot be assigned to an entity of type "char *",即函数返回值无法赋值给对应变量的错误
- 关于编译报错 error: cannot convert 'const std::__cxx11::basic_string<char>' to 'const char*' 的处理
- mysql从库Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'报错处理
- _CrtDbgReport: String too long or IO Error错误的产生情况和处理 使用setlocale函数
- android Installation failed due to invalid URI! 错误处理
- 错误-VS2010 error: LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or c
- Eclipse下开发android,The connection to adb is down, and a severe error has occured.提示需要重启adb怎么处理?
- android Installation failed due to invalid URI! 错误处理
- error: cast from ‘char*’ to ‘int’ loses precision
- 用https协议报ERROR_INTERNET_INVALID_CA错误处理方法