What is the difference between .LIB and .OBJ files? (Visual Studio C++)

此生再无相见时 提交于 2019-11-28 22:49:15

A .LIB file is a collection of .OBJ files concatenated together with an index. There should be no difference in how the linker treats either.

It seems like the .lib file is like a collection of .obj files. Some people also regard the process,that switch several .obj files to .lib files, as Archive. In that case, the .lib file is a box of .obj file, which could be treated equally by linker.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!