[Haskell-cafe] ghc static linking on Windows

Thomas ten Cate ttencate at gmail.com
Thu Jul 2 05:40:59 EDT 2009

You cannot link statically to a .dll file. Either link statically with
the so-called "import library" (.lib) (there are tools to generate one
from a .dll, I believe), or link statically with a static build of
SQLite, which is also a .lib file.

Hope that helps,


On Wed, Jul 1, 2009 at 19:18, GüŸnther Schmidt<gue.schmidt at web.de> wrote:
> Hi,
> I tried to compile an app that uses sqlite3.dll with the -optl-static flag
> and the error message is:
> C:\ghc\ghc-6.10.3\gcc-lib\ld.exe: cannot find -lsqlite3
> collect2: ld returned 1 exit status
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list