Ping :)<br><br>Danielle, just wanted to let you know that I have managed to run a telepathy-salut &quot;Hello World&quot; program (discovering buddies coming-online/going-offline), using Python-Binding.<br><br>I just need to try it using native C bindings, as C is supposedly the fastest system-programming language.<br>
<br>Sorry to bother you, but I am still stuck at the third stage (using C binding).<br><br><br><br>Regards,<br>Ajay<br><br><div class="gmail_quote">On Mon, May 7, 2012 at 5:57 PM, Ajay Garg <span dir="ltr">&lt;<a href="mailto:ajaygargnsit@gmail.com" target="_blank">ajaygargnsit@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Danielle,<br><br>I think I managed to generate &quot;marshallers.c&quot; and &quot;marshallers.h&quot; ok.<br>
However, I am now stuck at third stage.<br><br>Complete terminal-dump ::<br><br>###################################################################################<br>
[ajay@localhost telepathy]$ glib-genmarshal --header --prefix=_example marshallers.list &gt; marshallers.h<br><br>[ajay@localhost telepathy]$ glib-genmarshal --body --prefix=_example marshallers.list &gt; marshallers.c<br>

<br>[ajay@localhost telepathy]$ gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include marshallers.c -o marshallers.o <br>/usr/lib/gcc/i686-redhat-linux/4.5.1/../../../crt1.o: In function `_start&#39;:<br>(.text+0x18): undefined reference to `main&#39;<br>

/tmp/ccqLxwb8.o: In function `_example_VOID__OBJECT_OBJECT&#39;:<br>marshallers.c:(.text+0x2a): undefined reference to `g_return_if_fail_warning&#39;<br>marshallers.c:(.text+0x4b): undefined reference to `g_value_peek_pointer&#39;<br>

marshallers.c:(.text+0x5a): undefined reference to `g_value_peek_pointer&#39;<div class="im"><br>collect2: ld returned 1 exit status<br>
###################################################################################<br><br><br></div>Ideas?<br><br><br>Regards,<br>Ajay<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Mon, May 7, 2012 at 4:52 PM, Danielle Madeley <span dir="ltr">&lt;<a href="mailto:danielle.madeley@collabora.co.uk" target="_blank">danielle.madeley@collabora.co.uk</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>On Mon, 2012-05-07 at 16:50 +0530, Ajay Garg wrote:<br>
<br>
&gt; I forgot to specify the exact link<br>
&gt; <a href="http://cgit.freedesktop.org/telepathy/telepathy-doc/tree/docs/examples/glib_mc5_presence_app" target="_blank">http://cgit.freedesktop.org/telepathy/telepathy-doc/tree/docs/examples/glib_mc5_presence_app</a><br>



&gt;<br>
&gt; Compiling &quot;example.c&quot; requires object for &quot;connections-monitor.c&quot;<br>
&gt; first.<br>
&gt; So, using your technique on &quot;connections-monitor.c&quot;, I get the<br>
&gt; following dump ::<br>
<br>
</div>The marshallers file is generated by glib-genmarshals. Have a look at<br>
the Makefile. Alternatively in new glib, all marshallers can be replaced<br>
by g_cclosure_marshal_generic(), no need to generate marshaller stubs.<br>
<div><div><br>
&gt;<br>
&gt; #####################################################################################################<br>
&gt; [ajay@localhost telepathy]$ gcc -o connections-monitor `pkg-config<br>
&gt; --cflags --libs telepathy-glib` connections-monitor.c<br>
&gt; connections-monitor.c:4:25: fatal error: marshallers.h: No such file<br>
&gt; or directory<br>
&gt; compilation terminated.<br>
&gt; #####################################################################################################<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; However, there isn&#39;t any &quot;marshallers.h&quot; at the link, nor is it<br>
&gt; immediately apparent as to what (package) may contain this.<br>
&gt;<br>
&gt; Any quick help in this regard ;-) ?<br>
&gt;<br>
&gt;<br>
&gt; Thanks and Regards,<br>
&gt; Ajay<br>
&gt;<br>
&gt;<br>
&gt; On Mon, May 7, 2012 at 4:42 PM, Danielle Madeley<br>
&gt; &lt;<a href="mailto:danielle.madeley@collabora.co.uk" target="_blank">danielle.madeley@collabora.co.uk</a>&gt; wrote:<br>
&gt;         On Mon, 2012-05-07 at 16:38 +0530, Ajay Garg wrote:<br>
&gt;         &gt; Hi Danielle.<br>
&gt;         &gt;<br>
&gt;         &gt; I am trying the example given at your link.<br>
&gt;         &gt; I have been able to get the &quot;includes&quot; done, however, I<br>
&gt;         don&#39;t know how to<br>
&gt;         &gt; figure out the libraries that need to be linked.<br>
&gt;<br>
&gt;<br>
&gt;         Try: gcc -o blah `pkg-config --cflags --libs telepathy-glib`<br>
&gt;         blah.c<br>
&gt;<br>
&gt;         Note backticks ` not single quotes.<br>
&gt;<br>
&gt;         --<br>
&gt;         Danielle Madeley<br>
&gt;         Senior Software Engineer, Collabora Ltd.<br>
&gt;<br>
&gt;         <a href="http://www.collabora.co.uk" target="_blank">www.collabora.co.uk</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
--<br>
Danielle Madeley<br>
Senior Software Engineer, Collabora Ltd.<br>
<br>
<a href="http://www.collabora.co.uk" target="_blank">www.collabora.co.uk</a><br>
<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>