ar -r libmsc.a mslnw8.o.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users ar -r libmsc.a mslnw8.o.
# 1  
Old 08-26-2005
ar -r libmsc.a mslnw8.o.

Hi,
if you would be kind to explaine me what does this do :
ar -r libmsc.a mslnw8.o.
Many thanks before.
# 2  
Old 08-26-2005
Quote:
Originally Posted by big123456
Hi,
if you would be kind to explaine me what does this do :
ar -r libmsc.a mslnw8.o.
Many thanks before.
man ar

Code:
NAME
     ar - maintain portable archive or library

     /usr/ccs/bin/ar -r  [ -abciuVv ]  [ posname ]  archive  file
     ...


     -r        Replaces or adds files in archive. If archive does
               not  exist, a new archive file will be created and
               a diagnostic message will be written  to  standard
               error  (unless  the -c option is specified). If no
               files are specified and the  archive  exists,  the
               results are undefined. Files that replace existing
               files will not change the order of the archive. If
               the  -u  option  is  used with the -r option, then
               only those files with dates of modification  later
               than  the  archive  files are replaced. If the -a,
               -b, or -i option is used, then the  posname  argu-
               ment  must be present and specifies that new files
               are to be placed after (-a) or before (-b  or  -i)
               posname; otherwise the new files are placed at the
               end.

# 3  
Old 08-26-2005
libmsc.a is an archive. Another name is a library. This one stores object files.
The command adds mslnw8.o to libmsc.a if it does not exist in libmsc.a, otherwise it creates a new entry for mslnw8.o in libmsc.a
# 4  
Old 08-26-2005
ar

Many many thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question