what should be included for dbus_connection_setup_with_g_main()?
walters at verbum.org
Fri Jan 2 20:34:21 PST 2009
On Fri, Jan 2, 2009 at 11:09 PM, arrow <arrowf at 163.com> wrote:
> I meet a build error says: 'dbus_connection_setup_with_g_main' was not
> declared in this scope.
> I have included the following headfiles, and used the gcc option:
> `pkg-config --cflags --libs dbus-glib-1`
> #include <glib.h>
> #include <dbus/dbus.h>
> #include <dbus/dbus-glib.h>
You need #include <dbus/dbus-glib-lowlevel.h>
You shouldn't normally need to call it, if you're using dbus_g_bus_get
as is typically the case.
More information about the dbus