How do you create a static library?--unix

If you have a collection of object (.o) files, you can do it by running ar command. Generally a static library has a .a extension, and you can link it into an executable by providing -l libraryname to gcc.

No comments:

Post a Comment

comment on this post

Note: Only a member of this blog may post a comment.