
On Jul 17, 2006, at 3:40 PM, John Goerzen wrote:
On 2006-07-17, Robert Dockins
wrote: I got a resolution to this problem on a different mailing list:
http://www.mail-archive.com/glasgow-haskell-users@haskell.org/ msg10063.html
I've attached a patch that makes it work for me. It's not cross- platform happy, but it makes the Windows compile work. Darcs "get" from http://darcs.complete.org/hdbc-odbc/ and apply the patch.
Hello Robert,
First off, thanks for your work on this.
I would appreciate getting patches e-mailed directly to me, BTW.
I was hoping to make it cross-platform before sending it in for possible inclusion, but...
As you noted, I can't apply this directly as-is because of not being cross-platform happy. That is easily enough fixed for the #includes. However, for the .cabal file, it's not so easy. Is it really not possible to link in odbc -- it has to be odbc32 on Windows?
this problem is why I haven't done so yet. I got link errors with -lodbc. With a little googling around I discovered that I could fix it by using -lodbc32. I don't know if that's because of my particular setup or if it is a problem in general; I stopped doing research as soon as I could compile and run my app. On the linked thread above, Esa indicated that using MSYS can sometimes make linking go funny. Unfortunately, I don't know enough about mingw to know if that's happening in this case. If it is the case that it needs to be odbc32 on Windows, I'm not sure how to handle that with cabal. Using, eg, autotools seems like overkill for something so trivial, but all the other ideas I had were pretty crufty. Rob Dockins Speak softly and drive a Sherman tank. Laugh hard; it's a long way to the bank. -- TMBG