当前位置: 代码迷 >> 综合 >> 【debug】 烧写 ttn-otaa.ino提示 undefined reference to ‘table_g‘ / ‘table_get_ostime‘
  详细解决方案

【debug】 烧写 ttn-otaa.ino提示 undefined reference to ‘table_g‘ / ‘table_get_ostime‘

热度:50   发布时间:2024-03-10 01:08:04.0

设备:

  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) { \

 

  相关解决方案