HDBC-ODBC compile problem

Esa Ilari Vuokko eivuokko at gmail.com
Mon Jul 17 20:05:00 EDT 2006


On 7/17/06, Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:

> > 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?
>
> is not it possible to use the same trick as i used to include Win32
> package only in windows builds of Streams library. here is the
> Setup.hs that does this trick:

That should work as well, but writing out a .buildinfo-file would be
better, I think.

I have used that, little diffrently:
http://tamelambda.net/darcs/dx9/Setup.hs
(I write buildinfo based on configure params)

HTH,
--Esa


More information about the Libraries mailing list