.o files vs .a files

前端 未结 6 587
离开以前
离开以前 2021-01-30 16:20

What is the difference between these two file types. I see that my C++ app links against both types during the construction of the executable.

How to build .a files? li

6条回答
  •  无人及你
    2021-01-30 16:29

    You can use ar to create .a file (static library) from .o files (object files)

    See man ar for details.

提交回复
热议问题