ARMCC 中implicit cast of pointer to non-equal pointer的原因
来源:互联网 发布:ff14捏脸数据 雷霆 编辑:程序博客网 时间:2024/04/30 22:36
ADS的C编译器真是有点傻啊。。
unsinged char *str="ifqif.qifqq";
这样的声明都不能自己转换一下啊。今天在声明一个字符串数组的时候总是报错。
unsigned char vga640480[] =
{
0x61,0x02,0x0b,0x00,0x20,0x37,0x10,0x8c,
0x01,0x69,0x30,0x20,0x05,0x03,0x1b,0x15,
0x00,0xcb,0xff,0x40,0x3f,0x7e,0x0d,0x40,
0x62,0x00,0x68,0x00,0xf0,0x00,0x00,0x00,
0x0a,0x01,0x00,0x00,0x01,0x32,0x00,0x00,
0x00,0x00,0x54,0x01,0xae,0xae,0xd7,0x81,
0x08,0xfa,0xfa,0x1f,0x0f,0xfa,0xfa,0x03,
0xfc,0x00,0x00,0x0f,0x0f,0x00,0x00,0x3f
};
unsigned char *(display_mode[2][2]) =
{
{0, 0},
{vga640480, "VGA 640X480"},
}
Error : C3028E: '=': implicit cast of pointer to non-equal pointer
vga.c line 58
最后改为
unsigned char *(display_mode[2][2]) =
{
{0, 0},
{vga640480, (unsigned char *)"VGA 640X480"},
}
编译通过。
真是死板的要命哈。
- ARMCC 中implicit cast of pointer to non-equal pointer的原因
- implicit cast of pointer loses '__packed' qualifier
- warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]错误
- warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
- warning: cast to pointer from integer of diffe
- warning: cast to pointer from integer of different size
- cast of Objective-C pointer type 'NSString *' to C pointer type 'CFStringRef' (aka 'const struct __C
- Conversion from 'void*' to pointer to non-'void' requires an explicit cast
- 【IOS异常汇总】之 implicit conversion of Object-C pointer type"NSString *" to C pointer type "const void *"
- EXC_BAD_ACCESS and char pointer to float pointer cast
- Implicit conversion of an Objective-C pointer to '__autoreleasing instancetype *' (aka '__autoreleas
- ios implicit conversion of an objective-c pointer to 'NSString *__autoreleasing *' is disallowed wit
- LINUX下warning: cast from pointer to integer of different size问题
- 警告: assignment makes pointer from integer without a cast的另外一种原因
- pointer to pointer vs. reference to pointer
- comparison of distinct pointer types lacks a cast
- error : comparison of distinct pointer types lacks a cast
- Cast from pointer to smaller type 'int' loses information
- 二级联动
- JavaApi,1.4and1.5的chm格式文件可以到这里下载。
- 网络让我迷失了自己
- 你觉得自己是一个Java专家吗?zt
- ASP.NET事务处理
- ARMCC 中implicit cast of pointer to non-equal pointer的原因
- 突发奇想2
- 另类对联
- 如何学习软件工程
- 编译Konqueror embedded
- 微软,您的.net为中国程序员带来了什么?
- 查询域名的小程序
- 如何写出性能好的sql
- Java NIO是否到处都适合?