Re: linker errors

2004-09-13 Thread Volker Stolz
In gmane.comp.lang.haskell.glasgow.user, you wrote: > When compiling using ghc, I get the following error: > Parser.o(.text+0x10fc5): In function `r1fgN_entry': >: undefined reference to `DataziTuple_Z77T_con_info' > collect2: ld returned 1 exit status What platform and gcc? Could you please invok

linker errors

2004-09-13 Thread Frank-Andre Riess
Hello There, this is my first post on this list. I'm quite new to using Haskell (started in July), so my question might be somewhat trivial, but I still hope you can help me out. At the moment our project - a parser for a type language - consists of the following modules: Lexer IntermediateSyntax

RE: Profiling makes FFI Marshalling of Doubles and Int64s fail

2004-09-13 Thread Bayley, Alistair
I'm using the newer v3 API, which has functions to get column values as String, Int, Double, Int64, etc. It also has a prepare/step/finalise trio of functions for doing queries, which suits me better. Alistair. > -Original Message- > From: Krasimir Angelov [mailto:[EMAIL PROTECTED] > Sen

RE: Profiling makes FFI Marshalling of Doubles and Int64s fail

2004-09-13 Thread Krasimir Angelov
--- "Bayley, Alistair" <[EMAIL PROTECTED]> wrote: > Thanks Krasimir. I did have a look at your code, but > I don't see any foreign > types other than CString and Int, which work OK for > me regardless of > profiling option. (BTW, you tend to use Int rather > than CInt - is this > safe?) Good sug

RE: Profiling makes FFI Marshalling of Doubles and Int64s fail

2004-09-13 Thread Bayley, Alistair
Thanks Krasimir. I did have a look at your code, but I don't see any foreign types other than CString and Int, which work OK for me regardless of profiling option. (BTW, you tend to use Int rather than CInt - is this safe?) I guess I should build a small C library which uses CDouble and CLLong, ju

Re: Profiling makes FFI Marshalling of Doubles and Int64s fail

2004-09-13 Thread Krasimir Angelov
--- "Bayley, Alistair" <[EMAIL PROTECTED]> wrote: > (using GHC 6.2.1 under Windows XP) > > I'm trying to use the Sqlite (version 3) dll - see > http://www.sqlite.org/ . Hi Alistair, HSQL already provides binding to sqlite. I don't know whether you will have the same problem with profiling vers

Profiling makes FFI Marshalling of Doubles and Int64s fail

2004-09-13 Thread Bayley, Alistair
(using GHC 6.2.1 under Windows XP) I'm trying to use the Sqlite (version 3) dll - see http://www.sqlite.org/ . Marshalling of 32-bit ints and Strings works well, but 64-bit Ints and Doubles fail (I get garbage back from the FF calls) when I compile with "-prof -auto-all". If I compile without prof