title: mingw32 showing undefined reference to all gtk functions
body: <p>I am trying to compile the following code, base.c</p>
  
  <pre><code>#include &lt;glib/gerror.h&gt;
  #include &lt;gtk/gtk.h&gt;
  #include &lt;gdk-pixbuf/gdk-pixbuf.h&gt;
  
  int main( int   argc,
            char *argv[] )
  {
      GtkWidget *window;
  
      gtk_init (&amp;argc, &amp;argv);
  
      window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
      gtk_widget_show  (window);
  
      gtk_main ();
  
      return(0);
  }
  /* example-end */
  </code></pre>
  
  <p>I compile it using </p>
  
  <pre><code>gcc -Wall base.c -o base `pkg-config --cflags --libs gtk+-2.0`
  </code></pre>
  
  <p>The message I get returned in MinGW is </p>
  
  <p>C:\Users\Sunny\AppData\Local\Temp\cc4eIpLM.o:base.c:(.text+0x34): undefined reference to <code>gtk_init_abi_check</code></p>
  
  <p><code>collect2: ld return 1 exit status</code></p>
  
  <p>I get the same message for <code>gtk_window_new</code>, <code>gtk_widget_show</code> and <code>gtk_main</code></p>
  
  <p>I have a feeling it could be to do with the following questions:</p>
  
  <p>1) When compiling c programs with gtk where should I have them saved. In the mingw folder somewhere? </p>
  
  <p>2) I current have this appended onto my system variables path: <code>C:\gtk\bin\;C:\msys\1.0\bin;C:\mingw\bin</code>
  Is it correct?</p>
  
  <p>3) mingw32 can not find the libraries. Is there something I should have done with them when I downloaded msys and mingw</p>
  
  <p>Cheers.</p>