Page 1 of 1

Libraries

Posted: Tue Dec 03, 2002 3:24 pm
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.

Re:Libraries

Posted: Tue Dec 03, 2002 3:52 pm
by damonbrinkley
You need to use the ar utility.

ar crv library_name.a object1.o object2.o