什么是扩展。一个文件? [英] What is a file with extension .a?

查看:137
本文介绍了什么是扩展。一个文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了这个: https://github.com/mongodb/mongo-c-driver

现在我想用它在我的C程序中,但我不知道如何处理所产生的.a文件做的。他们是什么?我找不到任何信息,甚至没有在GCC手册。

and now I'm trying to use it inside my c program, but I don't know what to do with the generated .a files. What are they? I couldn't find any info, not even in the gcc manual.

和我建立它像这样:

  scons --c99

另外,我可以用C99库与我的C89计划?

Also, can I use c99 libraries with my c89 program?

推荐答案

.A 文件的通常由归档工具生成的静态库 。你通常包括静态库相关联的头文件,然后链接到库中,当你编译。

.a files are static libraries typically generated by the archive tool. You usually include the header files associated with that static library and then link to the library when you are compiling.

这篇关于什么是扩展。一个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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