Compile cgo lib on Cygwin64: "ld: cannot find -lmingw32"
<p>I'm trying to use a cgo library on Windows, namely <code>github.com/mattn/go-sqlite3</code></p>

<p>I use Cygwin64 and installed with all "Development" packages, so gcc is availabe.</p>

<p>But running <code>go get github.com/mattn/go-sqlite3</code> results in:</p>

<pre><code>/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lmingwex
/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lmingw32
</code></pre>

<p>If I search for "mingwex" and "mingw32" in the Cygwin installer, I get no results. Am I looking for the wrong names or are they not available on 64 bit systems?</p>

<p>Or is there a better way to use the library on Windows?</p>

<hr>

<p>Note that the README states that</p>

<blockquote>
  <p>However, if you install go-sqlite3 with go install
  github.com/mattn/go-sqlite3, you don't need gcc to build your app
  anymore</p>
</blockquote>

<p>but I get the same error message if I use <code>go install</code>.</p>

<pre><code>$ go version
go version go1.6.2 windows/amd64
</code></pre>