GNOME Bugzilla – Bug 656092
Commandline specified in "compilling helloworld" does not work on new gcc
Last modified: 2011-08-15 12:24:28 UTC
Ubuntu 11.10 (oneiric, currently at alpha stage) uses gcc 4.6. It requires to pass objects commandline arguments before libraries. It means that current command specified in the "Compiling and Running helloworld.c" chapter: gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) helloworld.c -o helloworld results in a bunch of "undefined reference" linker errors while gcc -Wall helloworld.c -o helloworld $(pkg-config --cflags --libs gstreamer-0.10) works well.
commit e77098101fc51a7f42d7f5eaee0ff1350744cb56 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Sun Aug 7 09:14:50 2011 +0100 docs: fix helloworld compile command line for newer gcc https://bugzilla.gnome.org/show_bug.cgi?id=656092
bah, why do they break backwards compatibility like that :/
Marcin, is that change in the behavior upstream (can't see it mentioned in http://gcc.gnu.org/gcc-4.6/changes.html) or ubuntu specific? just curious.
I don't know, I've tested that only on ubuntu oneiric...