Libraries

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
DarylD

Libraries

Post by DarylD »

What is the easiest way to create a library file using gcc?

I have been looking this up and a .a prefix seems to be a library style file (am I wrong??).

I am sure it must be simple to do.
damonbrinkley

Re:Libraries

Post by damonbrinkley »

You need to use the ar utility.

ar crv library_name.a object1.o object2.o
Post Reply