title: Unable to compile basic GLIB program after GLIB install
body: <p>I can't seem to compile this basic program using glib.h...</p>
  
  <pre><code>#include glib.h
  #include stdio.h
  
  int    main ()
  {
  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));  ;
  return 0;
  }
  </code></pre>
  
  <p>glib.h is located in /usr/local/include/glib-2.0</p>
  
  <p>So I compiled with </p>
  
  <pre><code>$ gcc -v -c -mcpu=v9 -I/usr/local/include/glib-2.0 testme2.c 
  </code></pre>
  
  <p>Now I get  missing  glibconfig.h. But it is  in <code>/usr/local/lib/glib-2.0/include/glibconfig.h</code></p>
  
  <p>Strangely glibconfig.h is the only file in <code>/usr/local/lib/glib-2.0/include</code> directory and more strangely it is not in <code>/usr/local/include/glib-2.0</code> directory</p>
  
  <p>Here are some more error messages...</p>
  
  <pre><code>from /usr/local/include/glib-2.0/glib.h:32,
              from testme.c:40:
  :34:24: glibconfig.h: No such file or directory
  </code></pre>
  
  <p>Here is an extract of /usr/local/include/glib-2.0/glib/gtypes.h</p>
  
  <pre><code>ifndef __G_TYPES_H__
  define __G_TYPES_H__
  
  include glibconfig.h
  include glib/gmacros.h
  
  G_BEGIN_DECLS
  
  typedef char   gchar;
  typedef short  gshort;
  </code></pre>
  
  <p>The question is how is GCC supposed to find glibconfig.h?</p>