Problems compiling

Nuno Santos developer at imaginando.net
Thu May 18 08:33:58 EDT 2006


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


More information about the Glasgow-haskell-users mailing list