What#39;s the differences between .dll , .lib, .h files?(.dll、.lib、.h 文件之间有什么区别?)
问题描述
为什么我应该在项目中包含一些 *.lib、.h 或一些其他文件?这些东西是干什么用的?
Why in a project should I include some *.lib, .h or some other files? And what are these things used for?
推荐答案
.h
:头文件,它是一个包含声明的源文件(与包含实现的 .cpp、.cxx 等相反),.h
: header file, its a source file containing declarations (as opposed to .cpp, .cxx, etc. containing implementations),.lib
:静态库可能包含代码或只是指向动态库的链接.无论哪种方式,它都是与程序链接的编译代码.静态库在链接时包含在您的 .exe 中..lib
: static library may contain code or just links to a dynamic library. Either way it's compiled code that you link with your program. The static library is included in your .exe at link time..dll
:动态库.就像静态文件一样,但您需要将它与 .exe 文件一起部署,因为它是在运行时加载的..dll
: dynamic library. Just like a static one but you need to deploy it with your .exe file because it's loaded at run time.这篇关于.dll、.lib、.h 文件之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:.dll、.lib、.h 文件之间有什么区别?


基础教程推荐
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 常量变量在标题中不起作用 2021-01-01
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 这个宏可以转换成函数吗? 2022-01-01
- 我有静态或动态 boost 库吗? 2021-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 如何检查GTK+3.0中的小部件类型? 2022-11-30