title: linking error in gtk2 application in ubuntu 12.04
body: <p>I've a <strong>C</strong> GUI application (in <strong>GTK+2.0</strong>) that I used to link as follows :</p>
  
  <pre><code>gcc -O2 -std=gnu99 -pipe -Wall -lm `pkg-congig gtk+-2.0 `pkg-config --libs gtk+-2.0` -o exec a.o b.o c.o
  </code></pre>
  
  <p>which eventually converted into :</p>
  
  <pre><code>gcc -O2 -std=gnu99 -pipe -Wall -lm -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64 linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lcairo -lgtk-x11-2.0 -lglib-2.0 -o exec a.o b.o c.o
  </code></pre>
  
  <p>It was until <strong>Ubuntu 12.04</strong>.</p>
  
  <p>When I tried to link the files in the same way in Ubuntu 12.04 as well, it showed the following error :</p>
  
  <pre><code>/usr/bin/ld: b.o: undefined reference to symbol 'gdk_color_parse'
  /usr/bin/ld: note: 'gdk_color_parse' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libgdk-x11-2.0.so so try adding it to the linker command line
  /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libgdk-x11-2.0.so: could not read symbols: Invalid operation
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>If anyone has any idea about this please share.</p>