title: undefined reference to gdk_pixbuf_new_from_file_utf8
body: <p>I have the following C GTK+ code and I get the following error trying to compile:</p>
  
  <blockquote>
    <p><strong>undefined reference to gdk_pixbuf_new_from_file_utf8</strong></p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;gtk/gtk.h&gt;
  
  GdkPixbuf *create_pixbuf(const gchar *filename)
  {
      GdkPixbuf *pixbuf;
      GError *error = NULL;
      pixbuf = gdk_pixbuf_new_from_file(filename, &amp;error);
      if (!pixbuf)
      {
          fprintf(stderr, "%s\n", error-&gt;message);
          g_error_free(error);
      }
  
      return pixbuf;
  }
  
  int main (int argc, char *argv[])
  {
  
      GtkWidget *window;
  
      gtk_init(&amp;argc, &amp;argv);
  
      window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
      gtk_window_set_title(GTK_WINDOW(window), "Center");
      gtk_window_set_default_size(GTK_WINDOW(window), 230, 150);
      gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
      gtk_window_set_icon(GTK_WINDOW(window), create_pixbuf("someimg.jpg"));
      gtk_widget_show(window);
  
      g_signal_connect_swapped(G_OBJECT(window), "destroy",
          G_CALLBACK(gtk_main_quit), NULL);
  
      gtk_main();
  
    return 0;
  }
  </code></pre>
  
  <p>Can anybody tell me whats wrong?</p>