Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile & use GLib with MinGW

I want to use the Gnome GLib in 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?

like image 930
Milan Avatar asked Aug 04 '09 14:08

Milan


People also ask

What are the four steps of compiling?

The compilation process can be divided into four steps, i.e., Pre-processing, Compiling, Assembling, and Linking. The preprocessor takes the source code as an input, and it removes all the comments from the source code. The preprocessor takes the preprocessor directive and interprets it.


2 Answers

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

like image 123
tml Avatar answered Nov 03 '22 17:11

tml


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

like image 32
Andrejs Cainikovs Avatar answered Nov 03 '22 19:11

Andrejs Cainikovs