简体   繁体   English

_mingw.h header 文件有什么作用?

[英]What does _mingw.h header file do?

While I was solving a program in C++, I came across this library _mingw.h, and got curious as to what its use is.当我在C++中解决一个程序时,我遇到了这个库_mingw.h,并且好奇它的用途是什么。 From the name I guessed it has something to do with the compiler.从名字我就猜到跟编译器有关系。

What does _mingw.h header file do? _mingw.h header 文件有什么作用?

In general, it does same thing that all headers do.通常,它做的事情与所有标头做的一样。 Headers contain declarations.标头包含声明。

Judging by the name, it might be part of the MinGW project.从名称来看,它可能是 MinGW 项目的一部分。 More accurate guess requires context about where you found that header. Regardless, including it would likely make your program dependent on using that specific toolchain.更准确的猜测需要有关您在哪里找到 header 的上下文。无论如何,包括它可能会使您的程序依赖于使用该特定工具链。

Note that if the header is undocumented, then you should not rely on the anything declared within it because there won't be any guarantee that the header would remain the same across different versions.请注意,如果 header 未记录,则您不应依赖其中声明的任何内容,因为无法保证 header 在不同版本中保持相同。 Nor should you rely on the file existing.您也不应该依赖现有的文件。 Therefore it will be quite rare for it to be useful to know what is declared in such header. Nevertheless, you can open the file to find out what it declares.因此,很少有人知道在这样的 header 中声明了什么。不过,您可以打开该文件以找出它声明的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM