标签:
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
gtktree和gtktext使用时要在文件中定义GTK_ENABLE_BROKEN
标签:
原文地址:http://www.cnblogs.com/qjziyou/p/4448706.html