pkgconfig

 

动态链接库

pkg-config --libs gtk+-3.0

 

头文件

pkg-config --cflags gtk+-3.0

检查版本

pkg-config --modversion gtk+-3.0

 

编译

gcc `pkg-config --cflags gtk+-3.0` -o example-3 example-3.c `pkg-config --libs gtk+-3.0`

posted @ 2024-06-07 10:13  牛之蚁  阅读(1)  评论(0)    收藏  举报