|
我在编译是输入gcc base.c -o base 'pkg-config --cflags gtk+-2.0'
提示:
base.c:1:21: gtk/gtk.h: 没有那个文件或目录
base.c: In function `main':
base.c:5: `GtkWidget' undeclared (first use in this function)
base.c:5: (Each undeclared identifier is reported only once
base.c:5: for each function it appears in.)
base.c:5: `window' undeclared (first use in this function)
base.c:7: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
不知是什么问题,我是按gtk2.0的教程写的
请高手指教 |
|