title: Cabal missing dependencies on foreign libraries when install glib under Windows
body: <p>I need glib for <a href="http://research.microsoft.com/en-us/projects/threadscope/" rel="nofollow">threadscope</a> to work. But I am not able to install it using cabal. I tried <code>cabal install glib</code> but getting the following error. I even tried downloading the library and installing it locally but get the same error.</p>
  
  <p>I am using Cygwin on Windows. I ran Cygwin setup to make sure I have the missing libraries. I was able to find glib, gobject but not gthread.</p>
  
  <pre><code>    Gtk2HsSetup.hs:25:2:
           warning: #warning Setup.hs is guessing the version of Cabal. If compilation
       of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when buil
      ding (prefixed by --ghc-option= when using the 'cabal' command)
      [1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs, dist\setup\Gtk2HsSetup.o )
  
      [2 of 2] Compiling Main             ( Setup.hs, dist\setup\Main.o )
      Linking .\dist\setup\setup.exe ...
      Configuring glib-0.12.0...
      setup.exe: Missing dependencies on foreign libraries:
      * Missing C libraries: gobject-2.0, gthread-2.0, glib-2.0, intl, iconv
      This problem can usually be solved by installing the system packages that
      provide these libraries (you may need the "-dev" versions). If the libraries
      are already installed but in a non-standard location then you can use the
      flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
      cabal: Error: some packages failed to install:
      glib-0.12.0 failed during the configure step. The exception was:
      ExitFailure 1
  </code></pre>