• Uncategorized

About c++ : xubuntu-2110-g-gtk4-error-‘gtkcontaineradd-was-not-declared-in-this-scope

Question Detail

xubuntu 21.10 g++ gtk4 give me next error while I compile my source codes in console (terminal)
“error: ‘gtk_container_add’ was not declared in this scope”.

    #include <gtk/gtk.h>

Which libs (deb packets) I need install to my xubuntu 21.10 and which files (libs) I need include to my c++ source codes?

Question Answer

That particular function was removed in GTK4.

See the GTK3->GTK4 migration guide: https://docs.gtk.org/gtk4/migrating-3to4.html#reduce-the-use-of-generic-container-apis

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.