root@hello-desktop:~/src/GSTtest# gedit test.c
- #include <gst/gst.h>
- int main (int argc,char *argv[])
- {
- const gchar *nano_str;
- guint major, minor, micro, nano;
- gst_init (&argc, &argv);
- gst_version (&major, &minor, µ, &nano);
- if (nano == 1)
- nano_str = "(CVS)";
- else if (nano == 2)
- nano_str = "(Prerelease)";
- else
- nano_str = "";
- printf ("This program is linked against GStreamer %d.%d.%d %s\n",
- major, minor, micro, nano_str);
- return 0;
- }
root@hello-desktop:~/src/GSTtest# ls
test.c
root@hello-desktop:~/src/GSTtest# gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) test.c -o test
root@hello-desktop:~/src/GSTtest# ./test
This program is linked against GStreamer 0.10.28