[Haskell-cafe] Problem compiling hdbc with GHC 6.10.1 in windows

2008-11-06 Thread PJ Durai
Greetings I would like to report that I am not able to compile hdbc 1.1.5.0. $ runghc.exe Setup.lhs build Preprocessing library HDBC-1.1.5... Building HDBC-1.1.5... [1 of 6] Compiling Database.HDBC.ColTypes ( Database\HDBC\ColTypes.hs, dist\build\Database\HDBC\ColTypes.o ) [2 of 6] Compiling

Re: [Haskell-cafe] Problem compiling hdbc with GHC 6.10.1 in windows

2008-11-06 Thread PJ Durai
On Thu, Nov 6, 2008 at 4:44 PM, Thomas Schilling [EMAIL PROTECTED] wrote: You need to use base-3. For a temporary fix, edit the file HDBC.cabal and change the base part of the build-depends to look like this: base == 3.*, (wherever it occurs) That worked. Thanks! 2008/11/6 PJ Durai [EMAIL

Re: [Haskell-cafe] HDBC-ODBC linking problems in windows.

2008-08-04 Thread PJ Durai
On 8/3/08, Andrew Appleyard [EMAIL PROTECTED] wrote: Hi PJ, On 2/08/2008 4:09 AM, you wrote: I am having issues getting hdbc/odbc working on windows. When using GHC, I am not able to compile a simple program. It ends up with linker errors like [...] Is there an easy workaround for

[Haskell-cafe] HDBC-ODBC linking problems in windows.

2008-08-01 Thread PJ Durai
Greetings everyone, I am having issues getting hdbc/odbc working on windows. When using GHC, I am not able to compile a simple program. It ends up with linker errors like C:\Program Files\Haskell\HDBC-odbc-1.1.4.3\ghc-6.8.3/libHSHDBC-odbc-1.1.4.3.a(Connection.o)(.text+0x52c):fake: undefined

Re: [Haskell-cafe] Linker problems linking FFI import call in Windows

2008-07-16 Thread PJ Durai
On 7/16/08, Olivier Boudry [EMAIL PROTECTED] wrote: On Tue, Jul 15, 2008 at 11:51 PM, PJ Durai [EMAIL PROTECTED] wrote: I am trying to import some functions from a windows DLL. I am getting strange errors. (This used to work with previous versions of GHC. 6.6 I think.). You may have

[Haskell-cafe] Linker problems linking FFI import call in Windows

2008-07-15 Thread PJ Durai
Greetings I am trying to import some functions from a windows DLL. I am getting strange errors. (This used to work with previous versions of GHC. 6.6 I think.). This is my import statement: foreign import stdcall ace.h AdsConnect adsConnect' :: CString - Ptr CInt - IO CInt This is the build

[Haskell-cafe] Seeking advice on best practices with FFI

2008-05-09 Thread PJ Durai
Hello, I am trying to write FFI wrappers for a dynamic library in windows. I would like to get some help in how to go about doing things. For example for this C function, the import and wrapper I came up with are listed below. -- STATUS LNPUBLIC NSFDbOpen (char far *PathName, DBHANDLE far