9 years, 3 months ago.

May I use an offline compiled library?

Hi,

I am trying to upload a library file from local machine to mbed online IDE. The library file is successfully uploaded but when I click on the file in the online IDE an error message appears: “FILE OPEN ERROR. Invalid file extension”. I tried to use *.a or *.lib files and the IDE has the same behavior. I am going to upload only the library file and the header files, without source code. Is that possible? If yes please let me know which is the supported library file type for mbed online compiler.

Thanks, Andrei Kovacs

I believe .ar works, but not sure, you can try it.

posted by Erik - 06 Aug 2015

I tried and didn't work.

posted by Andrei Kovacs 07 Aug 2015

1 Answer

9 years, 3 months ago.

Yes, it used to be. This is the article I wrote when I needed to create a library for mbed:

http://0xc0170.github.io/embedded/2013/02/04/arm-compiler-armcc-and-arm-archiver/

If any information missing, I can edit the article, add more info there.

Hi Martin,

Thank you for your answer. As I said before, I successfully created a compatible library with keil uVision (*.a file). The library was tested offline in keil uVision and in IAR Embedded Workbench and seemed to be functional. After, I tried to upload the library in the mbed online compiler but the online IDE reported that this is an unknown file without any additional information. So, I think the library is not compatible with the mbed online IDE and I don't know why.

posted by Andrei Kovacs 13 Aug 2015

library with an extension .ar should work

posted by Martin Kojtal 13 Aug 2015