Fortran/LIB

From mn/geo/geoit
Revision as of 12:15, 14 September 2011 by Jfb (talk | contribs) (Created page with "**HOWTO create your own FORTRAN library** Static libraries are simply a collection of ordinary object files; conventionally, static libraries end with the ".a" suffix. This coll...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
    • HOWTO create your own FORTRAN library**

Static libraries are simply a collection of ordinary object files; conventionally, static libraries end with the ".a" suffix. This collection is created using the ar (archiver) program.

e.g.

ar rcs my_library.a file1.o file2.o

r ... insert files

c ... create archive

s ... create object file index

more information:

man ar

http://www.faqs.org/docs/Linux-HOWTO/Program-Library-HOWTO.html#STATIC-LIBRARIES