[Haskell-cafe] Missing Parsec library in latest stable GHC

Antoine Latter aslatter at gmail.com
Wed Dec 22 17:47:37 CET 2010


ghc doesn't, by default, go searching for packages to link in to the
resulatant executable..

If you try 'ghc --make scheme.hs' your example will work better.

You can also specify what to link manually, but --make works pretty
well most of the time.

In ghc version 7 '--make' is the default, but until that's more widely
distributed you'll want to get used to using the switch.

Take care,
Antoine

On Wed, Dec 22, 2010 at 10:36 AM, Aaron Gray <aaronngray.lists at gmail.com> wrote:
> On 22 December 2010 16:27, Antoine Latter <aslatter at gmail.com> wrote:
>>
>> What commands did you enter to produce this error?
>>
>
> ghc scheme.hs
> Aaron
>
>>
>> Ahanks,
>> Antoine
>>
>> On Wed, Dec 22, 2010 at 9:54 AM, Aaron Gray <aaronngray.lists at gmail.com>
>> wrote:
>> > Missing Parsec library :-
>> > scheme.o(.text+0x4fa):fake: undefined reference to
>> >
>> > `parseczm2zi1zi0zi0_TextziParserCombinatorsziParsecziCombinator_skipMany1_closure'
>> > scheme.o(.text+0x501):fake: undefined reference to
>> > `parseczm2zi1zi0zi0_TextziPaserCombinatorsziParsecziChar_space_closure'
>> > scheme.o(.text+0x5c2):fake: undefined reference to
>> > `parseczm2zi1zi0zi0_TextziParserCombinatorsziParsecziChar_oneOf_closure'
>> > scheme.o(.text+0x63a):fake: undefined reference to
>> > `mtlzm1zi1zi0zi0_ControlziMonadziTrans_zdf1_closure'
>> > GHC from :-
>> >     http://www.haskell.org/ghc/dist/stable/dist/
>> >     ghc-7.0.1.20101221-i386-windows.exe
>> > and earlier.
>> > Aaron
>> >
>> > _______________________________________________
>> > Haskell-Cafe mailing list
>> > Haskell-Cafe at haskell.org
>> > http://www.haskell.org/mailman/listinfo/haskell-cafe
>> >
>> >
>
>



More information about the Haskell-Cafe mailing list