Mingw-w64文件布局 [英] Mingw-w64 File Layout

查看:354
本文介绍了Mingw-w64文件布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了mingw-w64的multilib版本,因此可以构建32位和64位二进制文​​件.这是文件的树形表示: http://pastebin.com/r4QUnbwJ .如果只想查看目录,请查看此目录: http://pastebin.com/2m6uqt4E .在某些情况下,例如在bin目录中,看起来好像有重复的文件.它们有什么不同吗?另外,我看到一个名为"mingw"的目录,另一个名为"x86_64-w64-mingw32".他们在内容上看起来差不多.再次,有什么区别?

I installed the multilib version of mingw-w64 so I could build both 32-bit and 64-bit binaries. Here's a tree representation of the files: http://pastebin.com/r4QUnbwJ. If you only want to view the directories, see this instead: http://pastebin.com/2m6uqt4E. It looks like there are duplicate files in some cases, like in the bin directory. Are they different in any way? Also, I see one directory named "mingw" and another named "x86_64-w64-mingw32". They look about the same in content. Again, what is the difference?

基本上,我只想解释文件布局.我不希望每个文件都有描述,但是如果能够解决mingw-w64(multilib)中的一些主要概念,那就太好了.

Basically, I just want an explanation of the file layout. I'm not expecting a description of each file, but it would be good if some of the main concepts within mingw-w64 (multilib) were addressed.

推荐答案

以我的经验,可以安全地删除/mingw目录.只有奇怪的GCC构建系统才需要它(在某些情况下甚至可能是空的).

In my experience, the /mingw directory can safely be deleted. It is only needed for the strange GCC build system (and can even be empty in some cases).

x86_64-w64-mingw32/bin目录包含由gcc/g ++/gfortran/etc调用的可执行文件.内部.不要删除它们.

The x86_64-w64-mingw32/bin directory contains executables called by gcc/g++/gfortran/etc. internally. Don't delete them.

似乎没有标准"目录结构,有时x86_64-w64-mingw32/lib(32)和x86_64-w64-mingw32/include目录包含相同的文件.有时,甚至在根include和lib(32)目录中也存在相同的文件.如果您需要专家的解答,请随时发布到 minwgw-64邮件列表,那里有很多知识渊博的人.

There doesn't seem to be a "standard" directory structure, sometimes the x86_64-w64-mingw32/lib(32) and x86_64-w64-mingw32/include directories contain the same files. Sometimes the same files are even in the root include and lib(32) directories. If you need an expert's answer, feel free to post to the minwgw-64 mailing list, a lot of knowledgeable people reside there.

这篇关于Mingw-w64文件布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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