|
|
发表于 2015-8-8 20:53:46
|
显示全部楼层
Arduino:1.7.6 (Windows 8.1), 板:"Arduino Uno"
构建选项已变更,全部重新构建
cc1101-Receive.ino: In function 'void setup()':
cc1101-Receive.ino:47:23: error: 'CFREQ_433' was not declared in this scope
In file included from cc1101-Receive.ino:2:0:
C:\Users\鑫\Documents\Arduino\libraries\panstamp/cc1101.h:306:10: error: 'byte CC1101::readReg(byte, byte)' is private
byte readReg(byte regAddr, byte regType);
^
cc1101-Receive.ino:52:69: error: within this context
In file included from cc1101-Receive.ino:2:0:
C:\Users\鑫\Documents\Arduino\libraries\panstamp/cc1101.h:306:10: error: 'byte CC1101::readReg(byte, byte)' is private
byte readReg(byte regAddr, byte regType);
^
cc1101-Receive.ino:54:69: error: within this context
In file included from cc1101-Receive.ino:2:0:
C:\Users\鑫\Documents\Arduino\libraries\panstamp/cc1101.h:306:10: error: 'byte CC1101::readReg(byte, byte)' is private
byte readReg(byte regAddr, byte regType);
^
cc1101-Receive.ino:56:71: error: within this context
In file included from cc1101-Receive.ino:2:0:
C:\Users\鑫\Documents\Arduino\libraries\panstamp/cc1101.h: In function 'void ReadLQI()':
C:\Users\鑫\Documents\Arduino\libraries\panstamp/cc1101.h:306:10: error: 'byte CC1101::readReg(byte, byte)' is private
byte readReg(byte regAddr, byte regType);
^
cc1101-Receive.ino:67:55: error: within this context
In file included from cc1101-Receive.ino:2:0:
C:\Users\鑫\Documents\Arduino\libraries\panstamp/cc1101.h: In function 'void ReadRSSI()':
C:\Users\鑫\Documents\Arduino\libraries\panstamp/cc1101.h:306:10: error: 'byte CC1101::readReg(byte, byte)' is private
byte readReg(byte regAddr, byte regType);
^
cc1101-Receive.ino:78:57: error: within this context
cc1101-Receive.ino: At global scope:
cc1101-Receive.ino:129:1: error: expected declaration before '}' token
编译有误。
报告将会包含更多的信息
"在编译时,输出详细信息"
在 文件>首选项 中启用
我用了panstamp的库,怎么出现以上错误???求大神解答 |
|