【已解决】编译问题

设备嵌入式开发产品技术讨论,包括TuyaOS、SDK、TuyaWind IDE及其他开发者工具等话题


Post Reply
19926824531
Posts: 196

/home/tangcf_rk/sdb1_rk/T23N_D2PT/Cam/dependence/tuya/lib/libtuyaos_adapter.a(tkl_init_common.c.o):(.data.rel.ro+0x0): undefined reference to tkl_flash_read'
/home/tangcf_rk/sdb1_rk/T23N_D2PT/Cam/dependence/tuya/lib/libtuyaos_adapter.a(tkl_init_common.c.o):(.data.rel.ro+0x4): undefined reference to
tkl_flash_write'
/home/tangcf_rk/sdb1_rk/T23N_D2PT/Cam/dependence/tuya/lib/libtuyaos_adapter.a(tkl_init_common.c.o):(.data.rel.ro+0x8): undefined reference to tkl_flash_erase'
/home/tangcf_rk/sdb1_rk/T23N_D2PT/Cam/dependence/tuya/lib/libtuyaos_adapter.a(tkl_init_common.c.o):(.data.rel.ro+0x14): undefined reference to
tkl_flash_get_one_type_info'
collect2: error: ld returned 1 exit status
Makefile:181: recipe for target 'EasyCam' failed
make[1]: *** [EasyCam] Error 1
Makefile:69: recipe for target 'app' failed
在编译链接库时报错的问题,tuyaos3.9.0

Last edited by 19926824531 on 2024年 Jan 11日 10:45, edited 1 time in total.
郭老庄
Posts: 196

Re: 求助

你好,我们的代码不会用到tkl_flash_write、tkl_flash_erase、tkl_flash_get_one_type_info。可能是你在移植过程中某些链接选项导致这个报错,建议通过实现空接口规避这个问题

Post Reply