我正在使用 VC2010,试图为 Linux 编译一些用 C99 编写的库。以下行给出错误 C2275:'uint8_t':非法使用此类型作为表达式
uint8_t * G = (uint8_t*)calloc(N ,sizeof(uint8_t));
subhint: stdint.h(21) : 见 'uint8_t' 的声明,那一行是:
typedef unsigned char uint8_t;
然后是累积的问题:错误C2065:'G':未声明的标识符等。这里有什么非法的?