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?
file format not recognized when link an external .a lidrary
Re: file format not recognized when link an external .a lidrary
You should be able to use regular 'ar' tool (this tool is not architecture specific), but you do need to use "xtensa-esp32-elf-gcc -mlongcalls" to build the object files which go into the static library.
Re: file format not recognized when link an external .a lidrary
Hi, Thanks you. Yes, indeed i need to rebuild the liabrary with the correct toolchain
Who is online
Users browsing this forum: ulaoulao and 99 guests