Danielle,<br><br>I think I managed to generate "marshallers.c" and "marshallers.h" 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 > marshallers.h<br><br>[ajay@localhost telepathy]$ glib-genmarshal --body --prefix=_example marshallers.list > 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':<br>(.text+0x18): undefined reference to `main'<br>
/tmp/ccqLxwb8.o: In function `_example_VOID__OBJECT_OBJECT':<br>marshallers.c:(.text+0x2a): undefined reference to `g_return_if_fail_warning'<br>marshallers.c:(.text+0x4b): undefined reference to `g_value_peek_pointer'<br>
marshallers.c:(.text+0x5a): undefined reference to `g_value_peek_pointer'<br>collect2: ld returned 1 exit status<br>
###################################################################################<br><br><br>Ideas?<br><br><br>Regards,<br>Ajay<br><br><div class="gmail_quote">On Mon, May 7, 2012 at 4:52 PM, Danielle Madeley <span dir="ltr"><<a href="mailto:danielle.madeley@collabora.co.uk" target="_blank">danielle.madeley@collabora.co.uk</a>></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>
> I forgot to specify the exact link<br>
> <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>
><br>
> Compiling "example.c" requires object for "connections-monitor.c"<br>
> first.<br>
> So, using your technique on "connections-monitor.c", I get the<br>
> 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>
><br>
> #####################################################################################################<br>
> [ajay@localhost telepathy]$ gcc -o connections-monitor `pkg-config<br>
> --cflags --libs telepathy-glib` connections-monitor.c<br>
> connections-monitor.c:4:25: fatal error: marshallers.h: No such file<br>
> or directory<br>
> compilation terminated.<br>
> #####################################################################################################<br>
><br>
><br>
><br>
> However, there isn't any "marshallers.h" at the link, nor is it<br>
> immediately apparent as to what (package) may contain this.<br>
><br>
> Any quick help in this regard ;-) ?<br>
><br>
><br>
> Thanks and Regards,<br>
> Ajay<br>
><br>
><br>
> On Mon, May 7, 2012 at 4:42 PM, Danielle Madeley<br>
> <<a href="mailto:danielle.madeley@collabora.co.uk" target="_blank">danielle.madeley@collabora.co.uk</a>> wrote:<br>
> On Mon, 2012-05-07 at 16:38 +0530, Ajay Garg wrote:<br>
> > Hi Danielle.<br>
> ><br>
> > I am trying the example given at your link.<br>
> > I have been able to get the "includes" done, however, I<br>
> don't know how to<br>
> > figure out the libraries that need to be linked.<br>
><br>
><br>
> Try: gcc -o blah `pkg-config --cflags --libs telepathy-glib`<br>
> blah.c<br>
><br>
> Note backticks ` not single quotes.<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>
><br>
><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>