I have been working with the Tiny C Compiler and am trying to create a static library. I have search the TCC documentation but have not found anything about creating a static library. Is creating a static library possible with TCC?
Asked
Active
Viewed 467 times
0
-
2Static libraries are created using `ar`. The compiler just creates the `.o` files that get put into the library archive. – Barmar Sep 18 '20 at 00:55
-
@Barmar If you make this an answer, I can accept it. – NikolaPi Sep 18 '20 at 02:31
1 Answers
0
You create a static library the same way you do with any other compiler. You generate .o
files from all the .c
files, and combine them into a library with the ar
command.

Barmar
- 741,623
- 53
- 500
- 612