linux c编程,gui简单显示窗口

vi编辑器c源码:

#include <gtk/gtk.h>
int main( int argc, char *argv[] )
{
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main ();
return 0;
}

gcc -o t test.c pkg-config --cflags --libs --gtk+-2.0

报错提示:
--gtk+-2.0: unknow option
test.c: in function main:
test.c:4:error: GtkWidget undeclared(first use in this function)
test.c:4:error: for each function it appears in.
test.c:4:error: 'window' undeclared(first user in this function)
test.c:6:error: 'GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)

一点头绪都没有,请问该怎么解决

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!