.o files vs .a files

前端 未结 6 585
离开以前
离开以前 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:24

    A .o file is the result of compiling a single compilation unit (essentially a source-code file, with associated header files) while a .a file is one or more .o files packaged up as a library.

提交回复
热议问题