<br>It worked !<br><br>indeed I have a glib 2.6 in /usr/local/lib and glib 2.10 /usr/lib and it was using the bad one.<br><br>So when I set PKG_CONFIG_PATH to /usr/lib/pkgconfig/ everything is ok.<br><br>But I don't understand why pkg_config is, by default, searching /usr/local/lib/ for glib and /usr/lib/ for all the rest (here gstreamer)
<br><br><br>Thanks a lot.<br>Christophe<br><br><br><div><span class="gmail_quote">On 6/9/06, <b class="gmail_sendername">Archana Shah</b> &lt;<a href="mailto:archana.shah@wipro.com">archana.shah@wipro.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi Christophe,<br><br>Try doing<br><br>$ pkg-config --modversion glib-2.0<br><br>Are you getting correct 
2.10 version ?<br><br>If not, then find out where is glib-2.10 installed (what prefix ?) and<br>set the PKG_CONFIG_PATH to &lt;prefix&gt;/lib/pkgconfg:/usr/lib/pkgconfig.<br>Again if you run the same command<br>$ pkg-config --modversion 
glib-2.0, you should see the correct version<br>of glib, and then your program should compile fine.<br><br>Regards,<br>Archana.<br><br><br>Christophe Dehais wrote:<br><br>&gt; Hi all,<br>&gt;<br>&gt; Well with:<br>&gt;<br>
&gt; gstreamer 0.10.6<br>&gt; glib 2.10.2<br>&gt;<br>&gt; under Debian<br>&gt;<br>&gt; I try to compile the hello world program on page 11 of app dev manual<br>&gt; and I get:<br>&gt;<br>&gt;<br>&gt; (référence indéfinie vers : undefined reference to)
<br>&gt;<br>&gt; # gcc -Wall -g `pkg-config --cflags --libs gstreamer-0.10` simple.c -o<br>&gt; simple<br>&gt;<br>&gt; /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<a href="http://0.10.so">0.10.so</a><br>
&gt; &lt;<a href="http://0.10.so">http://0.10.so</a>&gt;: référence indéfinie vers « g_intern_static_string »<br>&gt; /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<a href="http://0.10.so">0.10.so</a><br>
&gt; &lt;<a href="http://0.10.so">http://0.10.so</a>&gt;: référence indéfinie vers « g_mapped_file_get_length »<br>&gt; /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<br>&gt; <a href="http://0.10.so">0.10.so
</a> &lt;<a href="http://0.10.so">http://0.10.so</a>&gt;: référence indéfinie vers « g_mapped_file_new »<br>&gt; /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<a href="http://0.10.so">0.10.so</a><br>&gt; &lt;
<a href="http://0.10.so">http://0.10.so</a>&gt;: référence indéfinie vers « g_mapped_file_free »<br>&gt; /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<a href="http://0.10.so">0.10.so</a><br>&gt; &lt;<a href="http://0.10.so">
http://0.10.so</a>&gt;: référence indéfinie vers « g_mkdir_with_parents »<br>&gt; /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<br>&gt; <a href="http://0.10.so">0.10.so</a> &lt;<a href="http://0.10.so">http://0.10.so
</a>&gt;: référence indéfinie vers «<br>&gt; g_mapped_file_get_contents »<br>&gt; /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<a href="http://0.10.so">0.10.so</a><br>&gt; &lt;<a href="http://0.10.so">http://0.10.so
</a>&gt;: référence indéfinie vers « g_date_get_type »<br>&gt; collect2: ld a retourné 1 code d'état d'exécution<br>&gt; #<br>&gt;<br>&gt; # ldd <a href="http://libgstreamer-0.10.so">libgstreamer-0.10.so</a> &lt;<a href="http://libgstreamer-0.10.so">
http://libgstreamer-0.10.so</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; linux-gate.so.1 =&gt;&nbsp;&nbsp;(0xffffe000)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libpthread.so.0 =&gt; /lib/tls/libpthread.so.0 (0xb7e74000)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgobject-2.0.so.0 =&gt; /usr/lib/libgobject-
2.0.so.0 (0xb7e3a000)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgthread-2.0.so.0 =&gt; /usr/lib/libgthread-2.0.so.0 (0xb7e36000)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgmodule-2.0.so.0 =&gt; /usr/lib/libgmodule-2.0.so.0 (0xb7e33000)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libdl.so.2 =&gt; /lib/tls/libdl.so.2 (0xb7e2f000)
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libglib-2.0.so.0 =&gt; /usr/lib/libglib-2.0.so.0 (0xb7da8000)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libxml2.so.2 =&gt; /usr/lib/libxml2.so.2 (0xb7c8f000)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libz.so.1 =&gt; /usr/lib/libz.so.1 (0xb7c7a000)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
libm.so.6 =&gt; /lib/tls/libm.so.6 (0xb7c54000)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libc.so.6 =&gt; /lib/tls/libc.so.6 (0xb7b1c000)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/ld-linux.so.2 (0x80000000)<br>&gt; #<br>&gt;<br>&gt;<br>&gt; I am not good at all about linking stuff, so I don't really understand
<br>&gt; the problem.<br>&gt;<br>&gt; I would appreciate any clue about this surely stupid problem.<br>&gt;<br>&gt; thanks,<br>&gt; Christophe<br>&gt;<br>&gt;<br>&gt;------------------------------------------------------------------------
<br>&gt;<br>&gt;_______________________________________________<br>&gt;gstreamer-devel mailing list<br>&gt;<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>&gt;<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>&gt;<br>&gt;<br><br><br><br> 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.&nbsp;&nbsp; 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.&nbsp;&nbsp; 
<a href="http://www.wipro.com">www.wipro.com</a><br></blockquote></div><br>