想学GTK+要装哪些软件包?
我记得是GIMP。但RPMS里的GIMP包很多。我不知道具体应该装哪几个。 该装GTK+的包和GTK2的包。 我已经将所有的与gtk有关的软件包装上了。但编译的时候。还是提示:# 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'
页:
[1]