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">&lt;<a href="mailto:dfkettle@gmail.com">dfkettle@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I think you&#39;re right. I didn&#39;t realize I had to install Sqlite before<br>
installing and building the HDBC-sqlite package. So I did that, but<br>
now I&#39;m getting a different error, because the DLL for Sqlite isn&#39;t<br>
getting found. How do I tell the build process where the DLL is?<br>
<br>
Here&#39;s the new error message:<br>
<div class="Ih2E3d"><br>
D:\Apps\ghc\ghc-6.10.1\HDBC-sqlite3-2.1.0.0&gt;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>
&lt;<a href="mailto:sylvan@student.chalmers.se">sylvan@student.chalmers.se</a>&gt; wrote:<br>
&gt; I think you need to install sqlite3 first. This is just a binding to the C<br>
&gt; library.<br>
&gt;<br>
&gt; On Fri, Feb 20, 2009 at 7:16 PM, David &lt;<a href="mailto:dfkettle@gmail.com">dfkettle@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve encountered another problem while trying to install<br>
&gt;&gt; &#39;HDBC-sqlite3&#39;. I did the install &quot;manually&quot;, instead of using Cabal,<br>
&gt;&gt; and during the build phase, received the following error message:<br>
&gt;&gt;<br>
&gt;&gt; D:\Apps\ghc\ghc-6.10.1\HDBC-sqlite3-2.1.0.0&gt;runghc Setup build<br>
&gt;&gt; Preprocessing library HDBC-sqlite3-2.1.0.0...<br>
&gt;&gt; Database\HDBC\Sqlite3\Statement.hsc:41:21: sqlite3.h: No such file or<br>
&gt;&gt; directory<br>
&gt;&gt; Database\HDBC\Sqlite3\Statement.hsc: In function `main&#39;:<br>
&gt;&gt; Database\HDBC\Sqlite3\Statement.hsc:137: error: `SQLITE_NULL&#39;<br>
&gt;&gt; undeclared (first use in this function)<br>
&gt;&gt; Database\HDBC\Sqlite3\Statement.hsc:137: error: (Each undeclared<br>
&gt;&gt; identifier is reported only once<br>
&gt;&gt; Database\HDBC\Sqlite3\Statement.hsc:137: error: for each function it<br>
&gt;&gt; appears in.)<br>
&gt;&gt; Database\HDBC\Sqlite3\Statement.hsc:148: error: `SQLITE_ROW&#39;<br>
&gt;&gt; undeclared (first use in this function)<br>
&gt;&gt; Database\HDBC\Sqlite3\Statement.hsc:149: error: `SQLITE_DONE&#39;<br>
&gt;&gt; undeclared (first use in this function)<br>
&gt;&gt; Database\HDBC\Sqlite3\Statement.hsc:150: error: `SQLITE_ERROR&#39;<br>
&gt;&gt; undeclared (first use in this function)<br>
&gt;&gt; compiling dist\build\Database\HDBC\Sqlite3\Statement_hsc_make.c failed<br>
&gt;&gt;<br>
&gt;&gt; Is the file &#39;sqlite3.h&#39; missing? Or am I doing something wrong?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; David.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Haskell-Cafe mailing list<br>
&gt;&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt;&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Sebastian Sylvan<br>
&gt; +44(0)7857-300802<br>
&gt; UIN: 44640862<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sebastian Sylvan<br>+44(0)7857-300802<br>UIN: 44640862<br>
</div>