发新话题
打印

gtk问题

gtk问题

BASE.C IS OK .
[root@localhost base]# gcc base.c -o base 'pkg-config --libs --cflags gtk+-2.0'
gcc: pkg-config --libs --cflags gtk+-2.0: 没有那个文件或目录
base.c:1:21: gtk/gtk.h: 没有那个文件或目录
base.c: In function `main':
base.c:4: `GtkWidget' undeclared (first use in this function)
base.c:4: (Each undeclared identifier is reported only once
base.c:4: for each function it appears in.)
base.c:4: `window' undeclared (first use in this function)
base.c:5: `button1' undeclared (first use in this function)
base.c:6: `button2' undeclared (first use in this function)
base.c:7: `box' undeclared (first use in this function)
base.c:10: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
base.c:13: `GTK_WIN_POS_CENTER' undeclared (first use in this function)
base.c:15: `TRUE' undeclared (first use in this function)
base.c:21: `gtk_main_quit' undeclared (first use in this function)
base.c:21: `NULL' undeclared (first use in this function)

TOP

把你的代码给来看看

把你的代码给来看看
包括 gtk/gtk.h没有啊?

TOP

还有就是我猜想你的问题可能是后面,(90%)
DO REMEBER!
` 不是 '  ,他是Esc键下面的那个,不是单引号,如果你是这样错的话,你看看加精的贴子再发贴吧

TOP

发新话题