我有来自GTK 教程的代码base.c
。
我在Ubuntu上工作,当我使用
$ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
我收到以下错误
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
base.c:1:20: fatal error: gtk/gtk.h: No such file or directory compilation terminated.
作为linux新手,有人可以帮助我设置环境以便我可以成功编译/运行程序吗?