Hello,<div><br></div><div>This is a question about how cabal-install finds &#39;installed foreign libraries&#39; when trying to satisfy dependencies for packages like hdbc-sqlite3 on Windows.</div><div>Sadly, the current setup means that I must use Windows 7 to develop code.</div>

<div><br></div><div>I&#39;ve already followed steps on <a href="http://wiki.github.com/jgoerzen/hdbc/frequentlyaskedquestions">http://wiki.github.com/jgoerzen/hdbc/frequentlyaskedquestions</a> to place the .dll and the .h files in the correct places; it&#39;s just that cabal never seems to find it, despite being given --extra-lib-dirs= and --extra-include-dirs= directives.</div>

<div><br></div><div>The message is as follows:</div><div><br></div><div><div><span class="Apple-style-span" style="font-size: x-small; ">&gt; cabal install hdbc-sqlite3 --extra-lib-dirs=D:\dev\libs\database\sqlite</span></div>

<div><span class="Apple-style-span" style="font-size: x-small;">Resolving dependencies...</span></div><div><span class="Apple-style-span" style="font-size: x-small;">Configuring HDBC-sqlite3-2.3.0.0...</span></div><div><span class="Apple-style-span" style="font-size: x-small;">cabal: Missing dependency on a foreign library:</span></div>

<div><span class="Apple-style-span" style="font-size: x-small;">* Missing C library: sqlite3</span></div><div><span class="Apple-style-span" style="font-size: x-small;">This problem can usually be solved by installing the system package that provides this library (you may need the &quot;-dev&quot; version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is.</span></div>

<div><span class="Apple-style-span" style="font-size: x-small;">cabal: Error: some packages failed to install:</span></div><div><span class="Apple-style-span" style="font-size: x-small;">HDBC-sqlite3-2.3.0.0 failed during the configure step. The exception was:</span></div>

<div><span class="Apple-style-span" style="font-size: x-small;">ExitFailure 1</span></div><div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div>The strangest thing is, I&#39;ve successfully made cabal build this package before (with a different version of Haskell Platform)... what&#39;s going on?</div>

<div><br></div><div>I&#39;m using cabal-install version 0.8.2 and Cabal library version 1.8.0.2.</div></div><div><br></div><div>Hok</div>