[root@localhost gcc_test]# gcc test.c -o test
test.c:1:21: gtk/gtk.h: 没有那个文件或目录
test.c:2: error: conflicting types for 'argc'
test.c:2: error: previous definition of 'argc' was here
test.c: In function `main':
test.c:4: error: `GtkWidget' undeclared (first use in this function)
test.c:4: error: (Each undeclared identifier is reported only once
test.c:4: error: for each function it appears in.)
test.c:4: error: `window' undeclared (first use in this function)
test.c:5: error: `argv' undeclared (first use in this function)
test.c:6: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
我在编译这段的时候出现了这情况,不知道为什么,本想在本办板块找找答案,可是看了N多贴子也没着到 ! 所以问问个位 谁能告示我怎么增加默认的头文件搜索目录啊.