找回密码
 注册
查看: 599|回复: 0

glade编译时出错

[复制链接]
发表于 2006-3-30 13:48:38 | 显示全部楼层 |阅读模式
[root@localhost src]# make
source='callbacks.c' object='callbacks.o' libtool=no \
depfile='.deps/callbacks.Po' tmpdepfile='.deps/callbacks.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -c `test -f
'callbacks.c' || echo './'`callbacks.c
callbacks.c: In function `on_ok_button1_clicked':
callbacks.c:25: warning: implicit declaration of function `gtk_file_chooser_get_filename'
callbacks.c:25: warning: implicit declaration of function `GTK_FILE_CHOSER'
callbacks.c:25: warning: assignment makes pointer from integer without a cast
gcc -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -o project3 main.o support.o interface.o callbacks.o -rdynamic -L/usr/lib -L/usr/X11R6/lib -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -ldl -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -lglib
callbacks.o(.text+0x29): In function `on_ok_button1_clicked':
/root/Projects/project3/src/callbacks.c:25: undefined reference to `GTK_FILE_CHOSER'
callbacks.o(.text+0x31):/root/Projects/project3/src/callbacks.c:25: undefined reference to `gtk_file_chooser_get_filename'
collect2: ld returned 1 exit status
make: *** [project3] Error 1



请问我为什么不能获取选择文件的名字,时不时用的版本有问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-7 08:05 , Processed in 0.036327 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表