Chinaunix

标题: 毕业设计的急!!!!!救命!!!!!在线等!!(结帖) [打印本页]

作者: coolboy_hzh    时间: 2008-05-16 16:24
标题: 毕业设计的急!!!!!救命!!!!!在线等!!(结帖)
做毕业设计的急啊。。。又是刚接触GTK编程,所以菜啊,
我的/usr/include 有三个GTK的
gtk-1.2
gtk-2.0
gtksourceview-1.0

目录

头文件包含情况:
//GTK
#define GTK_ENABLE_BROKEN
#include<gtk/gtk.h>
#include<gdk/gdkkeysyms.h>          //define accelerator
#include <gtk/gtkctree.h>
#include <gtk/gtktree.h>
#include <gtk/gtkfilesel.h>

编译的选项也是正确的:`pkg-config --cflags --libs gtk+-2.0 gthread-2.0`
但出现下面函数找不到的错误,怎么解决 ? 是什么没装? 还是哪个头文件没包含?  谢谢帮忙啊。。


system.c:(.text+0x4804): undefined reference to `xpm_label_box`
system.c:(.text+0x454): undefined reference to `get_widget_realize'
system.c:(.text+0x4130): undefined reference to `create_pixmap'
system.c:(.text+0x4348): undefined reference to `create_pixmap'
system.c:(.text+0x4504): undefined reference to `create_pixmap'
system.c:(.text+0x4648): undefined reference to `create_pixmap'
system.c:(.text+0x4804): undefined reference to `create_pixmap'
/tmp/ccQm6888.o:system.c:(.text+0x49c0): more undefined references to `create_pixmap' follow
/tmp/ccQm6888.o: In function `main':
system.c:(.text+0x4e18): undefined reference to `gtk_paned_set_handle_size'
system.c:(.text+0x85bc): undefined reference to `gtk_paned_set_handle_size'

[ 本帖最后由 coolboy_hzh 于 2008-5-22 22:47 编辑 ]
作者: coolboy_hzh    时间: 2008-05-18 09:18
没人回答吗?
作者: huyongzs    时间: 2008-05-18 21:11
要看看那些表示异常的函数在哪个头文件被包含,在哪个库被包含
我是菜鸟,只能说这么多
最好找参考文档参考看看
再就是注意一下编译的命令系数中是否有些库没有包含。
作者: coolboy_hzh    时间: 2008-05-19 08:55
我把函数拿出来找了呀。。
   貌似没搜到。。。好像是glade自己形成的吗?
      知道的,说下吧。。。
作者: whyglinux    时间: 2008-05-19 21:59
把 pkg-config --cflags --libs gtk+-2.0 gthread-2.0 执行的结果贴出来看看。
作者: churchmice    时间: 2008-05-25 17:39
1.!
2.急
3.在线等
你把三样都占全了
作者: coolboy_hzh    时间: 2008-06-16 11:39
谢谢。。我的问题早就已经解决了。。
   结贴
作者: tyz    时间: 2008-12-17 21:12
你倒是说说你是怎么解决的阿
作者: dill    时间: 2009-02-16 12:00
glade生成的代码应该用它给的make进行代码编译。。。
你那句肯定有库没引到的。。
作者: lantian728    时间: 2011-01-26 16:54
system.c.text+0x434: undefined reference to `create_pixmap'




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2