[Haskell-cafe] build-type: configure on windows
Duncan Coutts
duncan.coutts at googlemail.com
Thu Nov 11 16:11:17 EST 2010
On 11 November 2010 11:23, Nils Schweinsberg <ml at n-sch.de> wrote:
> Configuring pcre-light-0.4...
> cabal: Missing dependency on a foreign library:
> * Missing C library: pcre
On 11 November 2010 12:41, Stephen Tetley <stephen.tetley at gmail.com> wrote:
> Do you have the headers installed as well as the dlls?
With this error message, it really is the C libs. If cabal cannot find
the headers then it says so explicitly.
Cabal does the check by making a trivial .c program and linking it
with (approximately):
gcc main.o -lpcre
If that fails then cabal declares that it cannot find the C lib. It's
possible that the lib is present but that there is some other linking
error, it's a bit tricky to distinguish without looking at the error
messages from ld.exe.
So the first thing to try is the above test, or run cabal configure
-v3 and see what error message ld reports.
Duncan
More information about the Haskell-Cafe
mailing list