Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22295

How can I build standalone static library in c for a firmware module

$
0
0

How can I build a standalone static library (.a) for a firmware module and link that static library in the main project (without providing access to header files in that module) ?

I know about ar command but that is just compiling the .c files, when I try to use the functions in one of the .c files of the firmware module it shows me implicit function deceleration warning. I do not want to export the .h files but rather just provide a libexample.a package to the developer to use the firmware module.

Will the pre-compiled header work in this scenario?


Viewing all articles
Browse latest Browse all 22295

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>