Building a Static Library and Using it in the Code

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

What are the options in the "WICED-Smart-SDK-2.2.1-IDE-Installer.exe" IDE for building the static library from the source code.How can I use the built static library in another code.

Is it like this ?Add below line in makefile.mk  of the aplication

APP_PATCHES_AND_LIBS += <build_library.a>and then put the same static library and the header file in the the directory using this new static file.

0 Likes
1 Solution
Anonymous
Not applicable

After building your application, .o files will be generated in <WICED-Smart-SDK>/build/<YOURAPPLICATION>/.

I could make a static library by <WICED-Smart-SDK>/Tools/ARM_GNU/bin/Win32/arm-none-eabi-ar.exe r mylib.a MYLIB.o.

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

Hello Saurabh

Yes that is correct.

Thanks

JT

Anonymous
Not applicable

Thanks for the confirmation,

But how can I compile the source code to static library?In the IDE what/where are the options to do the same.

0 Likes
Anonymous
Not applicable

After building your application, .o files will be generated in <WICED-Smart-SDK>/build/<YOURAPPLICATION>/.

I could make a static library by <WICED-Smart-SDK>/Tools/ARM_GNU/bin/Win32/arm-none-eabi-ar.exe r mylib.a MYLIB.o.

0 Likes
Anonymous
Not applicable

OK , thanks, have you tested this library after building, did it work fine?

0 Likes