one-file program, pass the --cflags and --libs arguments to pkg-config.
For example:
<programlisting>
-$ gcc `pkg-config --cflags --libs gstreamer` -o myprog myprog.c
+$ gcc `pkg-config --cflags --libs gstreamer-0.7` -o myprog myprog.c
</programlisting>
would be sufficient for a gstreamer-only program.
If (for example) your app also used GTK+ 2.0, you could use
<programlisting>
-$ gcc `pkg-config --cflags --libs gstreamer gtk+-2.0` -o myprog myprog.c
+$ gcc `pkg-config --cflags --libs gstreamer-0.7 gtk+-2.0` -o myprog myprog.c
</programlisting>
Those are back-ticks (on the same key with the tilde on US keyboards),
not single quotes.
to a usable pipeline.
</para>
<para>
-To link against gstgconf, use pkg-config to query the gstreamer-libs.pc file
+To link against gstgconf, use pkg-config to query the gstreamer-libs-0.7.pc file
for link flags, and add -lgstgconf to the link flags.
This fragment of configure.ac shows how to use pkg-config to get the LIBS:
</para>
<programlisting>
dnl check for GStreamer helper libs
-PKG_CHECK_MODULES(GST_HELPLIBS, gstreamer-libs >= $GSTREAMER_REQ,,exit)
+PKG_CHECK_MODULES(GST_HELPLIBS, gstreamer-libs-0.7 >= $GSTREAMER_REQ,,exit)
AC_SUBST(GST_HELPLIBS_LIBS)
AC_SUBST(GST_HELPLIBS_CFLAGS)
</programlisting>