Problems compiling
Nuno Santos
developer at imaginando.net
Thu May 18 09:53:57 EDT 2006
Hi Christopher,
Thx for the reply. Yes it work withtou problems, but when i try to
execute the .o it says no permissions.
I change to executable whith chmod +x polish.o and then it says me bad
executable.
I also tried to do ghc -o polish polish.o
It gives me then the error i was complaing of.
What i'm doing wrong? Or not doing at all?
Many thx
Nuno
Christopher Brown wrote:
> 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