静态库(* .lib)文件使用哪种格式?我在哪里可以找到“官方” * .LIB文件结构/格式的规范? [英] Which format does static library (*.lib) files use? Where can I find "Official" specifications of *.LIB file structure/format?
问题描述
刚才我发现* nix系统中的静态库,换句话说* .a库
只是 ar fromat。
-
在Windows中静态库(*。lib文件)怎么样?他们在哪种格式?
我发现了一篇文章: http://www.microsoft.com/msj/0498/hood0498.aspx ,它解释了* .lib文件结构。但是我在哪里可以找到* .lib文件结构/格式的官方规范? 除了mingw的ar.exe以外,还有Microsoft的任何工具提取* .lib&的可重定位对象。 * .a档案
编辑: 我想知道为什么我无法解决这个问题。如果没有官方说明。那么编译器('linker'是更正确的)编写器是如何处理* .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.
What about static libraries(*.lib files) in windows? Which format are they in?
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?
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屋!