【debug】 烧写 ttn-otaa.ino提示 undefined reference to ‘table_g‘ / ‘table_get_ostime‘
生活随笔
收集整理的這篇文章主要介紹了
【debug】 烧写 ttn-otaa.ino提示 undefined reference to ‘table_g‘ / ‘table_get_ostime‘
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
設備:
? Arduino UNO + LoRa shield
代碼:
? ttn-otaa.ino
錯誤信息:
Arduino:1.8.10 (Windows 10), 開發板:"Arduino/Genuino Uno"C:\Users\ADMINI~1\AppData\Local\Temp\cceEo6Kv.ltrans0.ltrans.o: In function `radio_irq_handler':D:\APP\Arduino\libraries\arduino-lmic-master\src\lmic/radio.c:777: undefined reference to `table_get_u2'C:\Users\ADMINI~1\AppData\Local\Temp\cceEo6Kv.ltrans0.ltrans.o: In function `schedRx12':D:\APP\Arduino\libraries\arduino-lmic-master\src\lmic/lmic.c:1604: undefined reference to `table_get_ostime'collect2.exe: error: ld returned 1 exit status為開發板 Arduino/Genuino Uno 編譯時出錯。解決方法:
文件 oslmic.h,以下代碼
inline type table_get ## postfix(const type *table, size_t index) { \變成
static inline type table_get ## postfix(const type *table, size_t index) { \?
總結
以上是生活随笔為你收集整理的【debug】 烧写 ttn-otaa.ino提示 undefined reference to ‘table_g‘ / ‘table_get_ostime‘的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于意志的思考
- 下一篇: 教师计算机excel培训教案,Excel