docs: fix helloworld compile command line for newer gcc

https://bugzilla.gnome.org/show_bug.cgi?id=656092
This commit is contained in:
Tim-Philipp Müller 2011-08-07 09:14:50 +01:00
parent 3029a222e8
commit e77098101f

View file

@ -222,10 +222,10 @@ main (int argc,
<title>Compiling and Running helloworld.c</title>
<para>
To compile the helloworld example, use: <command>gcc -Wall
$(pkg-config --cflags --libs gstreamer-&GST_MAJORMINOR;)
helloworld.c -o helloworld</command>. &GStreamer; makes use of
<command>pkg-config</command> to get compiler and linker flags
needed to compile this application.
helloworld.c -o helloworld
$(pkg-config --cflags --libs gstreamer-&GST_MAJORMINOR;)</command>.
&GStreamer; makes use of <command>pkg-config</command> to get compiler
and linker flags needed to compile this application.
</para>
<para>
If you're running a non-standard installation (ie. you've installed
@ -237,8 +237,8 @@ main (int argc,
In the unlikely case that you are using an uninstalled GStreamer
setup (ie. gst-uninstalled), you will need to use libtool to build the
hello world program, like this: <command>libtool --mode=link gcc -Wall
$(pkg-config --cflags --libs gstreamer-&GST_MAJORMINOR;)
helloworld.c -o helloworld</command>.
helloworld.c -o helloworld
$(pkg-config --cflags --libs gstreamer-&GST_MAJORMINOR;)</command>.
</para>
<para>
You can run this example application with <command>./helloworld