Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    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
  •