I thin you need to use the following two options to point cabal configure to the right include and lib directories:<div><span class="Apple-style-span" style="font-family: -webkit-sans-serif; font-size: 16px; "><code class="option">--extra-include-dirs</code>=<em class="replaceable"><code>dir</code></em></span></div>
<div><font class="Apple-style-span" face="-webkit-sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px;"><code class="option">--extra-lib-dirs</code>=<em class="replaceable"><code>dir</code></em></span></font></div>
<div><br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 8:20 PM, David <span dir="ltr"><<a href="mailto:dfkettle@gmail.com">dfkettle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I think you're right. I didn't realize I had to install Sqlite before<br>
installing and building the HDBC-sqlite package. So I did that, but<br>
now I'm getting a different error, because the DLL for Sqlite isn't<br>
getting found. How do I tell the build process where the DLL is?<br>
<br>
Here's the new error message:<br>
<div class="Ih2E3d"><br>
D:\Apps\ghc\ghc-6.10.1\HDBC-sqlite3-2.1.0.0>runghc Setup build<br>
Preprocessing library HDBC-sqlite3-2.1.0.0...<br>
</div>D:\Apps\ghc\ghc-6.10.1\gcc-lib\ld.exe: cannot find -lsqlite3<br>
collect2: ld returned 1 exit status<br>
linking dist\build\Database\HDBC\Sqlite3\Statement_hsc_make.o failed<br>
<br>
Thanks for your help!<br>
<font color="#888888"><br>
David.<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Fri, Feb 20, 2009 at 2:25 PM, Sebastian Sylvan<br>
<<a href="mailto:sylvan@student.chalmers.se">sylvan@student.chalmers.se</a>> wrote:<br>
> I think you need to install sqlite3 first. This is just a binding to the C<br>
> library.<br>
><br>
> On Fri, Feb 20, 2009 at 7:16 PM, David <<a href="mailto:dfkettle@gmail.com">dfkettle@gmail.com</a>> wrote:<br>
>><br>
>> I've encountered another problem while trying to install<br>
>> 'HDBC-sqlite3'. I did the install "manually", instead of using Cabal,<br>
>> and during the build phase, received the following error message:<br>
>><br>
>> D:\Apps\ghc\ghc-6.10.1\HDBC-sqlite3-2.1.0.0>runghc Setup build<br>
>> Preprocessing library HDBC-sqlite3-2.1.0.0...<br>
>> Database\HDBC\Sqlite3\Statement.hsc:41:21: sqlite3.h: No such file or<br>
>> directory<br>
>> Database\HDBC\Sqlite3\Statement.hsc: In function `main':<br>
>> Database\HDBC\Sqlite3\Statement.hsc:137: error: `SQLITE_NULL'<br>
>> undeclared (first use in this function)<br>
>> Database\HDBC\Sqlite3\Statement.hsc:137: error: (Each undeclared<br>
>> identifier is reported only once<br>
>> Database\HDBC\Sqlite3\Statement.hsc:137: error: for each function it<br>
>> appears in.)<br>
>> Database\HDBC\Sqlite3\Statement.hsc:148: error: `SQLITE_ROW'<br>
>> undeclared (first use in this function)<br>
>> Database\HDBC\Sqlite3\Statement.hsc:149: error: `SQLITE_DONE'<br>
>> undeclared (first use in this function)<br>
>> Database\HDBC\Sqlite3\Statement.hsc:150: error: `SQLITE_ERROR'<br>
>> undeclared (first use in this function)<br>
>> compiling dist\build\Database\HDBC\Sqlite3\Statement_hsc_make.c failed<br>
>><br>
>> Is the file 'sqlite3.h' missing? Or am I doing something wrong?<br>
>><br>
>> Thanks,<br>
>> David.<br>
>> _______________________________________________<br>
>> Haskell-Cafe mailing list<br>
>> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
>> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
><br>
><br>
><br>
> --<br>
> Sebastian Sylvan<br>
> +44(0)7857-300802<br>
> UIN: 44640862<br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sebastian Sylvan<br>+44(0)7857-300802<br>UIN: 44640862<br>
</div>