Find the answer to your Linux question:
Results 1 to 2 of 2
I know the command 'ar', but it only joint the '.o' file. My program generates an executable application at last, however, the problem is it uses other archives, not only ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    5

    How to make an archive


    I know the command 'ar', but it only joint the '.o' file.
    My program generates an executable application at last, however, the problem is it uses other archives, not only some '.o' files.
    In another word, I want to change the executable file to '.a' file.
    How to do?
    thanks

  2. #2
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    A .a file is a library, not an executable. You link the modules within a .a file with your .o files to create the executable (which can actually have any suffix you like, including none, although using some (like .c) may confuse the casual observer).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •