Hi all!

I created simple application, which uses sqlite3 as it's datastore back-end. I
faced no problems when building and running it on Linux, but after I tried to
build it on Windows, I see weird linking error:

Linking dist\build\hnotes\hnotes.exe ...
C:\Documents and Settings\Admin\Application 
Data\cabal\sqlite-0.5.2.2\ghc-7.0.4/libHSsqlite-0.5.2.2.
a(sqlite3-local.o):sqlite3-local.c:(.text+0x21): undefined reference to 
`sqlite3_temp_directory'
C:\Documents and Settings\Admin\Application 
Data\cabal\sqlite-0.5.2.2\ghc-7.0.4/libHSsqlite-0.5.2.2.
a(sqlite3-local.o):sqlite3-local.c:(.text+0x40): undefined reference to 
`sqlite3_temp_directory'
collect2: v ld     1
cabal.EXE: Error: some packages failed to install:
hnotes-0.1 failed during the building phase. The exception was:
ExitFailure 1

What may be wrong there? I suspect that qalite3.dll has to be added to linking 
stage, 
but have no idea how to do that. Adding --extra-lib-dirs=path-to-sqlite-dll 
doesn't 
help either (perhaps because I need to update my cabal file somehow, to support 
this?).

Thank you for the help!

-- 
Eugene N Dzhurinsky

Attachment: pgpQJzjGTBAjt.pgp
Description: PGP signature

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

Reply via email to