what should be included for dbus_connection_setup_with_g_main()?

arrow arrowf at 163.com
Fri Jan 2 20:09:58 PST 2009


Hi,

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>

But, some other APIs in the same code can be found by gcc, such
as:dbus_bus_add_match(), dbus_connection_add_filter(), g_main_loop_new() and
g_main_loop_run()

Any suggestion? Thank you very much!
-- 
View this message in context: http://www.nabble.com/what-should-be-included-for-dbus_connection_setup_with_g_main%28%29--tp21261877p21261877.html
Sent from the Free Desktop - dbus mailing list archive at Nabble.com.



More information about the dbus mailing list