更新时间:2023-02-21 23:07:24
您的系统可能已安装pkg-config。
Your system likely has pkg-config installed.
g++ $(pkg-config --cflags dbus-1) main.c
Pkgconfig包含一个链接器/编译器等数据库。使用特定库所需的标志。有关详细信息,请参阅 man pkg-config
。
Pkgconfig contains a database of linker/compiler/etc. flags that are required to use specific libraries. See man pkg-config
for more info.