How to compile and run, test dbus programs in written in C?

pramoda.subraya at wipro.com pramoda.subraya at wipro.com
Thu Aug 23 01:04:44 PDT 2012


Hi,

I have compiled the programs which I got from http://www.linuxquestions.org/questions/programming-9/using-dbus-in-c-without-glib-708422/
But I am getting errors like
/usr/include/dbus-1.0/dbus/dbus.h:30:2: #error "Please define DBUS_API_SUBJECT_TO_CHANGE to acknowledge your understanding that D-BUS hasn't reached 1.0 and is subject to protocol and API churn. See the README for a full explanation."
dbus1.c: In function `main':
dbus1.c:32: error: `DBUS_NAME_FLAG_REPLACE_EXISTING' undeclared (first use in this function)
dbus1.c:32: error: (Each undeclared identifier is reported only once
dbus1.c:32: error: for each function it appears in.)
dbus1.c:37: error: `DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER' undeclared (first use in this function)

Please help me to solve and run.

If it is compiled successfully, how to run and test ?


Regards,
Pramod
Wipro Technologies | Cell: +91 98459 75870 | Direct: +91 80 30292824 | email: Pramoda.Subraya at wipro.com


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120823/9013c424/attachment.html>


More information about the dbus mailing list