Re: [Haskell-cafe] ghc static linking on Windows

2009-07-02 Thread Thomas ten Cate
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 Schmidtgue.schm...@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@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] ghc static linking on Windows

2009-07-01 Thread GüŸnther Schmidt

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@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe