在编译一个很简单的C语言代码时,遇到C语言指针使用不恰当导致编译报错error: invalid type argument of ‘unary *’ (have ‘int’),代码如下: #include stdio.h int main(){ int b = 10; //assign the integer 10 to variable b int *a; //declare a pointer to an integer a a=(int *)b; //...
C语言编译提示“invalid type argument of `unary *'” 整个代码如下:#include <common.h>#include <asm/io.h>#ifdef CONFIG_MMC_CHANNEL #define MMC_CHANNEL CONFIG_MMC_CHANNEL#else #define MMC_CHANNEL 0#endif#define ELFIN_HSMMC_BASE (0x7c200000 + MMC_CHANNEL * 0
define CopyMMCtoMem(a,b,c,d,e) (((int(*)(int, uint, ushort, uint *, int)) \(*((int *)(0x0c004000 + 0x8)))((a),(b),(c),(d),(e)))