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,
Thomas
On Wed, Jul 1, 2009 at 19:18, GüŸnther Schmidt<
gue.schmidt@...> 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@...
>
http://www.haskell.org/mailman/listinfo/haskell-cafe>
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe