<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.9">
<TITLE>Error while compiling a dbus ping program</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi!</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I am trying to compile a program dbusping.c. I've attached the program with this mail. When I try to compile the program with the following command,</FONT></P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">gcc `pkg-config --libs --cflags dbus-glib-1` -o dbusping dbusping.c</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I get the following error:</FONT>
</P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">dbusping.c: In function `signal_filter':<BR>
dbusping.c:40: error: `DBUS_INTERFACE_ORG_FREEDESKTOP_LOCAL' undeclared (first use in this function)<BR>
dbusping.c:40: error: (Each undeclared identifier is reported only once<BR>
dbusping.c:40: error: for each function it appears in.)</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Can anyone pls tell me what the cause of the error is? How can I rectify the same?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks & Regards,</FONT>
<BR><FONT SIZE=2 FACE="Arial">Swetha</FONT>
</P>
<BR>
<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"> <<dbusping.c>> </FONT>
</P>
</BODY>
</HTML>