Problems compiling

Christopher Brown cmb21 at kent.ac.uk
Thu May 18 09:06:17 EDT 2006


you could try

ghc --make polish.hs

Chris.

On 18 May 2006, at 13:33, Nuno Santos wrote:

> Hi,
>
> I'm very lame in Haskell and compiling is very new to me.
>
> I have this problem when compilng a program that runs without error:
>
>
> MACKIE:/Volumes/DADOS/LESI/4 Ano/SSDI lpx$ ghc polish.hs
> compilation IS NOT required
> /usr/bin/ld: Undefined symbols:
> _ZCMain_main_closure
> ___stginit_ZCMain
> collect2: ld returned 1 exit status
>
> Do i need to add extra parameters to ghc?
>
> I need to know or thing...
>
> I need to obtain the arguments of a haskell program and then treat  
> those arguments as a list inside the program
>
> example:
>
> polish [(1,(2,3)),(2,(3,4)),(3,(5,6))]
>
> And then i want to have that list inside the program.
>
> How can i do that?
>
> For now i have the following code:
>
> main :: IO ()
> main =  do args <- getArgs
>            print args
>
>
> Well, i hope someone can answer me these questions.
>
> Many thx,
>
> Nuno Santos
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



More information about the Glasgow-haskell-users mailing list