windows 如何在 MinGW 中编译和使用 GLib

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1227908/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 06:38:21  来源:igfitidea点击:

How to compile & use GLib with MinGW

windowsglibmingw32

提问by Milan

I want to use the Gnome GLibin a Windows environment using the free MinGW compiler to develop in C. The problem is, I have absolutely no idea how to compile this library. Would any of you please explain what tools are needed to accomplish this and what instructions need to be followed?

我想在 Windows 环境中使用Gnome GLib使用免费的 MinGW 编译器在 C 中进行开发。问题是,我完全不知道如何编译这个库。请你们中的任何人解释一下需要哪些工具来实现这一点以及需要遵循哪些说明?

采纳答案by Andrejs Cainikovs

You need to use MSys, it is downloadable from MinGW site. Using MSys you will be able to build GLib: http://www.mingw.org/wiki/Bootstrapping_GLIB_with_MinGW

您需要使用 MSys,它可以从 MinGW 站点下载。使用 MSys,您将能够构建 GLib:http: //www.mingw.org/wiki/Bootstrapping_GLIB_with_MinGW

回答by tml

GLib is available pre-compiled for Windows and has been for ages: http://www.gtk.org/download/windows.php.

GLib 可用于 Windows 预编译,并且已经存在多年:http: //www.gtk.org/download/windows.php