TheBestLinks.com
TheBestLinks.com
Ar (file format), Ar (Unix), Linker, UNIX, GNU Binutils, Deb (file format)... Print friendly version | Tell a friend
 
Navigation
Search
Toolbox

Ar (Unix)

From TheBestLinks.com

(Redirected from Ar (file format))

The archiver (also known simply as ar) is a UNIX utility that maintains groups of files as a single archive file. Generally, ar is used to create and update library files that the link editor or linker uses; however, it can be used to create archives for any purpose. ar is included as one of the GNU Binutils.

For example, to create an archive from files class1.o, class2.o, class3.o, the following command would be used:

 ar rcs libclass.a class1.o class2.o class3.o

to compile a program that depends on class1.o, class2.o, and class3.o one could do:

 cc main.c -L. -lclass

instead of:

 cc main.c class1.o class2.o class3.o 

The -L and -l switchs instruct the linker to look for the library "libclass.a" in the current directory.

See also

External links



Related links


Top visited 0 of 0 links

[no links posted yet]

>> place link >>

Discussion

Last posted 0 of 0 messages

[no messages posted yet]

>> post message >>

Watch

You can add this article to your own "watchlist" and receive e-mail notification about all changes in this page.
 
   
Innovate it
This page was last modified 10:11, 31 Aug 2004.
  Content is available under GNU Free Documentation License 1.2.
Powered by MediaWiki