QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 707|回复: 2

用glade开发时遇到的问题

[复制链接]
发表于 2005-4-10 11:49:20 | 显示全部楼层 |阅读模式
在glade-2.0.1中编译通过的代码在glade-2.6中不能通过编译,并且在2.0.1中生成的可执行文件也不能在2.6中运行.
附:2.0.1的是红帽,而2.6的是Fedora core 3!
make 后的提示:
[root@Hector 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.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/linc-1.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/X11R6/include -I/usr/include/libxml2 -I../src_backend `pkg-config --cflags glib-2.0`    -g -O2 -c `test -f 'callbacks.c' || echo './'`callbacks.c
callbacks.c: In function `on_okbuttonPpName_clicked':
callbacks.c:210: warning: assignment from incompatible pointer type
callbacks.c:221: warning: passing arg 2 of `extend_strcpy_dest_free_first' discards qualifiers from pointer target type
gcc  -g -O2   -o cc  main.o support.o interface.o callbacks.o ../src_backend/pp_struct.o ../src_backend/cc_fau_debug.o ../src_backend/cc_fau_support.o ../src_backend/pp_extend_func.o ../src_backend/xml_parse_common.o ../src_backend/xml_parse_pp.o ../src_backend/xml_parse_st.o treeview.o iconlist.o icon.o common_dlg.o operation_logic.o extend.o -pthread -Wl,--export-dynamic -L/usr/X11R6/lib -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lxml2 -lz -lgnomecanvas-2 -lgnome-2 -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation -lORBit-2 -lm -llinc -lgmodule-2.0 -ldl -lgobject-2.0 -lgthread-2.0 -lglib-2.0   -L../src_backend
/usr/bin/ld: cannot find -llinc
collect2: ld returned 1 exit status
make: *** [cc] 错误 1
发表于 2005-4-11 09:29:51 | 显示全部楼层
makefile里把-llinc去掉,我在f c 3下没找到这个库
回复

使用道具 举报

 楼主| 发表于 2005-4-11 15:36:24 | 显示全部楼层
果然有用,呵呵
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-6 09:44 , Processed in 0.067727 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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