【发布时间】:2011-09-23 02:41:56
【问题描述】:
我用过
gcc `pkg-config --cflags --libs dbus-1` hello-serv.c -o server
编译 dbus 程序并报错:
hello-serv.c:7:32: fatal error: dbus/dbus-mainloop.h: No such file or directory
compilation terminated.
我正在使用 C 低级 API 进行开发。
我在任何包含目录中都找不到mainloop.h。
【问题讨论】:
-
您是否安装了开发文件,例如
libdbus-1-dev在 Ubuntu 上? -
我正在使用 fedora,并且在 yum repositories 中没有名为 libdbus-1-dev 的包。 :(
标签: c compiler-errors dbus low-level-api