'does gobject depend on glib or glib depend on gobject?
I read a wikipedia page on gobject where it says,
Depending only on GLib and libc, GObject is a cornerstone of GNOME and is used throughout GTK, Pango, ATK
but this GLib API reference page lists GObject in its dependencies and this GObject API reference page lists GLib in its dependencies
If what said on wikipedia page is true, How are they in each others dependencies? shouldn't it be only present under GObject's dependencies and not under GLib dependencies?
I'm confused about what depends on what or is it the case that they both depend on each other? if yes, how?
Solution 1:[1]
This is a quirk of the documentation website: it currently conflates dependencies and related libraries. Since I'm maintaining both the tool that generates the documentation website and the website itself, I'll try and fix this as soon as I can.
To answer your question: the GLib project is composed by multiple C libraries:
- GLib, a low level C library of useful data types and cross-platform API, useful when writing C code that needs to be portable to various platforms and architectures
- GObject, an object oriented type system written in C
- GIO, a set of interfaces and classes that provide, among other things, a complex set of primitives for accessing file systems and their contents; a low level networking interface; an IPC interface based on D-Bus; and various other high level API for writing complex applications
- GModule, a cross-platform wrapper around loading shared modules at run time and resolving their symbols
All of these libraries are part of GLib.
On a lower level, the GLib C library sits below every other one, with GObject depending on GLib and GModule; and GIO depending on GObject.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ebassi |
