LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 834|回复: 2

gtk编程的问题

[复制链接]
发表于 2006-1-17 16:45:15 | 显示全部楼层 |阅读模式
编译一个gtk程序,gcc -o ex20_1 ex20_1.c `gtk-config --cflags` `gtk-config --libs`
出现bash:gtk-config:command not found是什么意思?
发表于 2006-1-17 16:55:14 | 显示全部楼层
you don't installed pkg_config package,
I think the development package of GTK and X11 are not installed on your system.
回复 支持 反对

使用道具 举报

发表于 2006-1-18 09:49:51 | 显示全部楼层
不知道你用的是什么系统,不过大家常用的是这样去编译
gcc -o ex20_1 ex20_1.c `pkg-config gtk+-2.0 --libs --cflags`

ps: gtk-config应该也是pkg-config的联接
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表