file format not recognized when link an external .a lidrary
Posted: Wed Apr 08, 2020 5:48 am
hi,
i'm trying to call the function which is implemented in a static library(.a file) in app_main(). I already defined to linke this library in the component.mk of the main.c. the libray is prebuilt with GNC toolcahin (gcc),.
the console promote "libmylib.a: error adding symbols: file format not recognized" , do i need to build and ar the library with xtensa toolchain? or i missed something .
can anybody help to figure out where is the problem?
i'm trying to call the function which is implemented in a static library(.a file) in app_main(). I already defined to linke this library in the component.mk of the main.c. the libray is prebuilt with GNC toolcahin (gcc),.
the console promote "libmylib.a: error adding symbols: file format not recognized" , do i need to build and ar the library with xtensa toolchain? or i missed something .
can anybody help to figure out where is the problem?