当前位置: 技术问答>linux和unix
熟悉glade朋友请进,我用glade做的界面,在里面加入少量的程序后make !出错
来源: 互联网 发布时间:2015-07-25
本文导语: 生成编码后先./autogen.sh.我进src 在interfaces.c里加了生成树和树项的程序,包含了头文件,修改了makefile如下: INTLLIBS = -lgtk -lgdk make时出错: interface.o(.text+0x115): In function `create_window': /myproject/play3/src/interface.c:71: undefin...
生成编码后先./autogen.sh.我进src 在interfaces.c里加了生成树和树项的程序,包含了头文件,修改了makefile如下:
INTLLIBS = -lgtk -lgdk
make时出错:
interface.o(.text+0x115): In function `create_window':
/myproject/play3/src/interface.c:71: undefined reference to `GTK_TREE'
interface.o(.text+0x12d):/myproject/play3/src/interface.c:73: undefined reference to `GTK_TREE_ITEM'
interface.o(.text+0x1c8):/myproject/play3/src/interface.c:83: undefined reference to `GTK_TREE'
interface.o(.text+0x1f1):/myproject/play3/src/interface.c:88: more undefined references to `GTK_TREE
' follow
interface.o(.text+0x209): In function `create_window':
/myproject/play3/src/interface.c:90: undefined reference to `GTK_TREE_ITEM'
interface.o(.text+0x228):/myproject/play3/src/interface.c:92: undefined reference to `GTK_TREE'
interface.o(.text+0x2a4):/myproject/play3/src/interface.c:100: undefined reference to `GTK_TREE'
interface.o(.text+0x2cd):/myproject/play3/src/interface.c:104: more undefined references to `GTK_TRE
E' follow
interface.o(.text+0x2e5): In function `create_window':
/myproject/play3/src/interface.c:106: undefined reference to `GTK_TREE_ITEM'
interface.o(.text+0x304):/myproject/play3/src/interface.c:108: undefined reference to `GTK_TREE'
interface.o(.text+0x3a9):/myproject/play3/src/interface.c:120: more undefined references to `GTK_TRE
E' follow
interface.o(.text+0x3c1): In function `create_window':
/myproject/play3/src/interface.c:122: undefined reference to `GTK_TREE_ITEM'
interface.o(.text+0x45c):/myproject/play3/src/interface.c:132: undefined reference to `GTK_TREE'
collect2: ld returned 1 exit status
make[2]: *** [play3] Error 1
make[2]: Leaving directory `/myproject/play3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/myproject/play3'
make: *** [all] Error 2
我查过了,GTK_TREE, GTK_TREE_ITEM 均是gtk/gtktree.h里面的宏.gtk/gtktree.h包含在头文件gtk/gtk.h
这个问题已经困绕了我很长时间了.请高手指点!!!谢谢
INTLLIBS = -lgtk -lgdk
make时出错:
interface.o(.text+0x115): In function `create_window':
/myproject/play3/src/interface.c:71: undefined reference to `GTK_TREE'
interface.o(.text+0x12d):/myproject/play3/src/interface.c:73: undefined reference to `GTK_TREE_ITEM'
interface.o(.text+0x1c8):/myproject/play3/src/interface.c:83: undefined reference to `GTK_TREE'
interface.o(.text+0x1f1):/myproject/play3/src/interface.c:88: more undefined references to `GTK_TREE
' follow
interface.o(.text+0x209): In function `create_window':
/myproject/play3/src/interface.c:90: undefined reference to `GTK_TREE_ITEM'
interface.o(.text+0x228):/myproject/play3/src/interface.c:92: undefined reference to `GTK_TREE'
interface.o(.text+0x2a4):/myproject/play3/src/interface.c:100: undefined reference to `GTK_TREE'
interface.o(.text+0x2cd):/myproject/play3/src/interface.c:104: more undefined references to `GTK_TRE
E' follow
interface.o(.text+0x2e5): In function `create_window':
/myproject/play3/src/interface.c:106: undefined reference to `GTK_TREE_ITEM'
interface.o(.text+0x304):/myproject/play3/src/interface.c:108: undefined reference to `GTK_TREE'
interface.o(.text+0x3a9):/myproject/play3/src/interface.c:120: more undefined references to `GTK_TRE
E' follow
interface.o(.text+0x3c1): In function `create_window':
/myproject/play3/src/interface.c:122: undefined reference to `GTK_TREE_ITEM'
interface.o(.text+0x45c):/myproject/play3/src/interface.c:132: undefined reference to `GTK_TREE'
collect2: ld returned 1 exit status
make[2]: *** [play3] Error 1
make[2]: Leaving directory `/myproject/play3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/myproject/play3'
make: *** [all] Error 2
我查过了,GTK_TREE, GTK_TREE_ITEM 均是gtk/gtktree.h里面的宏.gtk/gtktree.h包含在头文件gtk/gtk.h
这个问题已经困绕了我很长时间了.请高手指点!!!谢谢
|
up
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。