Page 1 of 1

【已解决】编译问题

Posted: 2023年 Dec 19日 15:31
by 19926824531

/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


Re: 求助

Posted: 2023年 Dec 19日 16:24
by 郭老庄

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