Hi!<br><br>I'm not sure this tutorial is up to date with the current state of DBus usage (I guess for instance that it makes you use libdbus whereas now it's recommended to use gdbus which is part of GIO).<br><br>For more information I suggest you see GIO's documentation about DBus at <a href="http://developer.gnome.org/gio/stable/">http://developer.gnome.org/gio/stable/</a> and the examples in its source code, see <a href="http://git.gnome.org/browse/glib/tree/gio/tests">http://git.gnome.org/browse/glib/tree/gio/tests</a> (or download GLib's source code).<br>
<br>Hope this helps,<br><br>Regards,<br><br>Vivien<br><br><div class="gmail_quote">On 23 August 2012 10:04, <span dir="ltr"><<a href="mailto:pramoda.subraya@wipro.com" target="_blank">pramoda.subraya@wipro.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">I have compiled the programs which I got from
<a href="http://www.linuxquestions.org/questions/programming-9/using-dbus-in-c-without-glib-708422/" target="_blank">
http://www.linuxquestions.org/questions/programming-9/using-dbus-in-c-without-glib-708422/</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">But I am getting errors like
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">/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."<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">dbus1.c: In function `main':<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">dbus1.c:32: error: `DBUS_NAME_FLAG_REPLACE_EXISTING' undeclared (first use in this function)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">dbus1.c:32: error: (Each undeclared identifier is reported only once<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">dbus1.c:32: error: for each function it appears in.)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">dbus1.c:37: error: `DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER' undeclared (first use in this function)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">Please help me to solve and run.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">If it is compiled successfully, how to run and test ?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">Regards,<u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">Pramod<u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#943634">Wipro Technologies | Cell: <a href="tel:%2B91%2098459%2075870" value="+919845975870" target="_blank">+91 98459 75870</a> | Direct: <a href="tel:%2B91%2080%2030292824" value="+918030292824" target="_blank">+91 80 30292824</a> | email:
<u><a href="mailto:Pramoda.Subraya@wipro.com" target="_blank">Pramoda.Subraya@wipro.com</a></u> <u></u><u></u></span></b></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p><b><span style="font-size:10.0pt;font-family:"Palatino Linotype","serif";color:green"> Please do not print this email unless it is absolutely necessary. </span></b><span style="font-family:"Arial","sans-serif""><u></u><u></u></span></p>
<p> 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. </p>
<p>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. </p>
<p>
<a href="http://www.wipro.com" target="_blank">www.wipro.com</a>
</p>
</div>
<br>_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
<br></blockquote></div><br>