【问题标题】:xubuntu 21.10 g++ gtk4 "error: ‘gtk_container_add’ was not declared in this scope"xubuntu 21.10 g++ gtk4“错误:‘gtk_container_add’未在此范围内声明”
【发布时间】:2021-12-28 13:30:41
【问题描述】:

xubuntu 21.10 g++ gtk4 在控制台(终端)中编译源代码时给我下一个错误 “错误:‘gtk_container_add’未在此范围内声明”。

    #include <gtk/gtk.h>

哪些库(deb 数据包)需要安装到我的 xubuntu 21.10,哪些文件(库)需要包含到我的 c++ 源代码中?

【问题讨论】:

    标签: c++ linux ubuntu gtk4


    【解决方案1】:

    GTK4 中删除了该特定功能。

    请参阅 GTK3->GTK4 迁移指南:https://docs.gtk.org/gtk4/migrating-3to4.html#reduce-the-use-of-generic-container-apis

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-04-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多