I happened to need to compile some D-Bus code and ran into a compile error:
dbus-example.c:8:23: error: dbus/dbus.h: No such file or directoryI checked to make the D-Bus development headers were installed and they were. A little Googling shows that others commonly run into this as well - the problem is that the D-Bus headers aren't included in the default compiler include path. You you need to explicitly specify them with:
gcc -I /usr/include/dbus-1.0 -I /usr/lib/dbus-1.0/include -ldbus-1 -o dbus-example dbus-example.c
Recent comments
3 weeks 6 days ago
5 weeks 6 days ago
7 weeks 1 day ago
7 weeks 1 day ago
7 weeks 1 day ago
7 weeks 5 days ago
7 weeks 6 days ago
8 weeks 18 hours ago
8 weeks 2 days ago
11 weeks 16 hours ago