Score:0

Need to update GLib library but the current version is assumed as the newest (it's not)

na flag

So I tried creating my first GTK 4 program using example-0.c using https://docs.gtk.org/gtk4/getting_started.html#basics guide, but I got the later-described error regarding G_APPLICATION_DEFAULT_FLAGS.

So I'm assuming my GLib version is older than 2.74. I used the command:

pkg-config --modversion glib-2.0

and got

2.72.4

The problem is that when I tried upgrading the package, nothing changed. I remember trying to upgrade libglib before (I forgot the commands I used), but it said that it already has the newest version, which is false because, according to https://docs.gtk.org/glib/, the newest version is 2.76.

Why does it think that the current version is the latest one; how to fix that and upgrade GLib?

hr flag
*"Why does it think that the current version is the latest one"* - it is the latest one for your version of Ubuntu. See also [Why don't the Ubuntu repositories have the latest versions of software?](https://askubuntu.com/questions/151283/why-dont-the-ubuntu-repositories-have-the-latest-versions-of-software)
Gimper avatar
na flag
Got it, thanks.
Score:0
na flag

I used @steeldriver 's suggestion and upgraded my Ubuntu (22.04 LTS) to 22.10.

The library is now 2.74.3 and the error is no more.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.