QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 834|回复: 2

想学GTK+要装哪些软件包?

[复制链接]
发表于 2003-6-29 17:05:35 | 显示全部楼层 |阅读模式
我记得是GIMP。但RPMS里的GIMP包很多。我不知道具体应该装哪几个。
发表于 2003-6-29 22:01:46 | 显示全部楼层
该装GTK+的包和GTK2的包。
回复

使用道具 举报

 楼主| 发表于 2003-6-30 09:53:30 | 显示全部楼层
我已经将所有的与gtk有关的软件包装上了。但编译的时候。还是提示:
[root@localhost tmp]# gcc -Wall -g second.c -o second -L /usr/X11R6/lib \
> -l glib -l gdk -l gtk -l X11 -l Xert -l m
second.c:1:25: gtk-2.0/gtk.h: 没有那个文件或目录
second.c:2: parse error before '*' token
second.c: In function `hello':
second.c:4: warning: implicit declaration of function `g_print'
second.c: At top level:
second.c:6: parse error before '*' token
second.c: In function `destroy':
second.c:8: warning: implicit declaration of function `gtk_main_quit'
second.c: In function `main':
second.c:12: `GtkWidget' undeclared (first use in this function)
second.c:12: (Each undeclared identifier is reported only once
second.c:12: for each function it appears in.)
second.c:12: `window' undeclared (first use in this function)
second.c:13: `button' undeclared (first use in this function)
second.c:14: warning: implicit declaration of function `gtk_init'
second.c:15: warning: implicit declaration of function `gtk_window_new'
second.c:15: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
second.c:16: warning: implicit declaration of function `gtk_signal_connect'
second.c:16: warning: implicit declaration of function `GTK_OBJECT'
second.c:16: warning: implicit declaration of function `GTK_SIGNAL_FUNC'
second.c:16: `NULL' undeclared (first use in this function)
second.c:17: warning: implicit declaration of function `gtk_container_border_windth'
second.c:17: warning: implicit declaration of function `GTK_CONTAINER'
second.c:18: warning: implicit declaration of function `gtk_button_new_with_label'
second.c:20: warning: implicit declaration of function `gtk_signal_connect_object'
second.c:20: `gtk_widget_destroy' undeclared (first use in this function)
second.c:21: warning: implicit declaration of function `gtk_container_add'
second.c:22: warning: implicit declaration of function `gtk_winget_show'
second.c:24: warning: implicit declaration of function `gtk_main'
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-24 05:35 , Processed in 0.090127 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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