linux下调试程序,出现如下错误:

/tmp/ccG8fpwg.o: In function `apache_viewlog_form':
apache.c:(.text+0x776): undefined reference to `GTK_TEXT'
apache.c:(.text+0x789): undefined reference to `GTK_TEXT'
apache.c:(.text+0x7c3): undefined reference to `GTK_TEXT'
/tmp/ccSLZMdn.o: In function `form_dns_tree_add':
dns.c:(.text+0x2f1): undefined reference to `GTK_TREE'
dns.c:(.text+0x32a): undefined reference to `GTK_TREE_ITEM'
collect2: ld 返回 1
make: *** [clinet] 错误 1

因为程序中使用了`GTK_TEXT'和`GTK_TREE',所以需要在引用头文件前加上:

#define  GTK_ENABLE_BROKEN

相关文章:

  • 2023-04-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-13
  • 2021-08-24
  • 2022-12-23
  • 2021-06-29
  • 2021-07-05
相关资源
相似解决方案