静态库(* .lib)文件使用哪种格式?我在哪里可以找到“官方” * .LIB文件结构/格式的规范? [英] Which format does static library (*.lib) files use? Where can I find "Official" specifications of *.LIB file structure/format?

查看:144
本文介绍了静态库(* .lib)文件使用哪种格式?我在哪里可以找到“官方” * .LIB文件结构/格式的规范?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚才我发现* nix系统中的静态库,换句话说* .a库
只是 ar fromat。


  1. 在Windows中静态库(*。lib文件)怎么样?他们在哪种格式?

  2. 我发现了一篇文章: http://www.microsoft.com/msj/0498/hood0498.aspx ,它解释了* .lib文件结构。但是我在哪里可以找到* .lib文件结构/格式的官方规范? 除了mingw的ar.exe以外,还有Microsoft的任何工具提取* .lib&的可重定位对象。 * .a档案


编辑:

我想知道为什么我无法解决这个问题。如果没有官方说明。那么编译器('linker'是更正确的)编写器是如何处理* .LIB文件的?

我发现* .LIB文件使用 ar 文件格式。 Microsoft Portable Executable and Common Object File Format Specification 描述了这一点格式。


Just now I found that static libraries in *nix systems, in other words *.a libraries are nothing but archives of relocatables(*.o files) in ar fromat.

  1. What about static libraries(*.lib files) in windows? Which format are they in?

  2. I found an article: http://www.microsoft.com/msj/0498/hood0498.aspx which explains *.lib file structure. But Where can I find "Official" specifications of *.lib file structure/format?

  3. Other than ar.exe of mingw is there any tool from Microsoft which extracts relocatable objects of *.lib & *.a files?

EDIT:

I wonder why I'm unable to get to this question. If there are no official specifications. Then how does the compiler ('linker' to be more correct) writers work with *.LIB files?

解决方案

I found that *.LIB file uses the ar file format.

Official Specifications: Section 7. "Archive (Library) File Format" of Microsoft Portable Executable and Common Object File Format Specification describes this format.

这篇关于静态库(* .lib)文件使用哪种格式?我在哪里可以找到“官方” * .LIB文件结构/格式的规范?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆