问题描述
为什么我应该在项目中包含一些 *.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 文件之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!