user55413: I know to make a library on arduino ide with source codes, but I cant send my source code to another users who want to use my lib.
So I need to make a library with precompiled=true info at library.properties. And I need to put my .a and .so files at src/{build.mcu} (in my case, src/avr/mylib.a and mylib.so).
But, where is that files (.a and .so)?! 
Does the arduino compiler generate this files? If so, where? If dont, how compiler I need to use?
I found the .o file at appData\local\Temp\arduino_build_XXXX\libraries\mylib\
Thank you very much and sory about my english.

user60115: [library] = library name
1) edit the [library] library.properties file and add dot_a_linkage=true to the end ... (/home/name/Arduino/libraries/[library]/library.properties)
2) build the example ...
3) After the build is complete navigate to the build folder (In Linux it's located in the /tmp/arduino_build_xxxxxx folder) then copy the dot_a file from under library folder (libraries/[library].a) to the arduino library folder for the [library] library (/home/name/Arduino/libraries/[library]/src/esp8266/lib[library].a)
4) edit the [library] library library.properties file again and remove dot_a_linkage=true and add precompiled=true and ldflags=-l[library] to the end of the file ...
5)  build the example ... this time it links to the dot_a file ...

55413: <p>I know to make a library on arduino ide with source codes, but I cant send my source code to another users who want to use my lib.</p>

<p>So I need to make a library with precompiled=true info at library.properties. And I need to put my .a and .so files at src/{build.mcu} (in my case, src/avr/mylib.a and mylib.so).</p>

<p>But, where is that files (.a and .so)?! </p>

<p>Does the arduino compiler generate this files? If so, where? If dont, how compiler I need to use?</p>

<p>I found the .o file at appData\local\Temp\arduino_build_XXXX\libraries\mylib\</p>

<p>Thank you very much and sory about my english.</p>
 60115: <p>[library] = library name</p>

<p>1) edit the [library] library.properties file and add dot_a_linkage=true to the end ... (/home/name/Arduino/libraries/[library]/library.properties)</p>

<p>2) build the example ...</p>

<p>3) After the build is complete navigate to the build folder (In Linux it's located in the /tmp/arduino_build_xxxxxx folder) then copy the dot_a file from under library folder (libraries/[library].a) to the arduino library folder for the [library] library (/home/name/Arduino/libraries/[library]/src/esp8266/lib[library].a)</p>

<p>4) edit the [library] library library.properties file again and remove dot_a_linkage=true and add precompiled=true and ldflags=-l[library] to the end of the file ...</p>

<p>5)  build the example ... this time it links to the dot_a file ...</p>
