未声明的标识符' byte'。编译C代码

时间:2018-01-16 17:43:04

标签: c xcode

我试图在Xcode中从.c文件编译库。 (它在Windows上的Visual Studio中没有给我任何错误)但是Xcode给出了:

  

使用未声明的标识符' byte'

在下一行:

buf[2] = (byte)(addr & 0xff);

1 个答案:

答案 0 :(得分:0)

在.c文件中,我已使用下一个代码声明interface TemperatureInputInterface { onTemperatureChange: (arg1: string, arg2: number) => boolean, }

byte

uint8_t类似于byte,因此编译