I am using D-bus 1.0 in my suse linux-10.3. I have written simple code to get the dbus coonection inside my main(){}.

i have included glib.h and dbus.h . and call a simple DbusConnection *conn=dbus_bus_get().

compiled with:
gcc -g -wall -ldbus -libglib etc...........

But it gives me compilation error as:
libdbus-glib-1.so:undefined refrence to 'dbus-watch-get-unix_fd'

can any one please help me solving this problem?
pls reply ASAP.thanks to all.