MCC builded with Cygween fail compile module:
: invalid option line 1: set: -
set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]
MCC builded with MinGW load modules, but there errors when use REPL (when linking):
Prelude> :l ptest
/d/programs/curry-0.9.11/bin/cyc -c ptest.curry -o ptest.o
ptest> parseTerm "d"
d:/programs/curry-0.9.11/lib/libcurry.a(files.o):files.c:(.text+0x142c): undefined reference to `gethostbyname_at_4'
d:/programs/curry-0.9.11/lib/libcurry.a(files.o):files.c:(.text+0x144e): undefined reference to `htons_at_4'
d:/programs/curry-0.9.11/lib/libcurry.a(files.o):files.c:(.text+0x148c): undefined reference to `socket_at_12'
d:/programs/curry-0.9.11/lib/libcurry.a(files.o):files.c:(.text+0x14b2): undefined reference to `connect_at_12'
d:/programs/curry-0.9.11/lib/libcurry.a(files.o):files.c:(.text+0x1561): undefined reference to `inet_addr_at_4'
d:/programs/curry-0.9.11/lib/libcurry.a(files.o):files.c:(.text+0x15e7): undefined reference to `WSAStartup_at_8'
collect2: ld returned 1 exit status
The file ptest.curry is very simple:
import Char
data Term = Term String [Term]
parseTerm s | s =:= fun ++ "(" ++ args ++ ")" &
all isAlpha fun =:= True = Term fun (parseArgs args)
where fun, args free
parseTerm s | all isAlpha s =:= True = Term s []
parseArgs s | s =:= term ++ "," ++ terms &
parseTerm term =:= result = result : parseArgs terms
where term, terms, result free
parseArgs s | parseTerm s =:= result = [result]
where result free
P.S.
I didn't test it under Linux.
_______________________________________________
curry mailing list
curry_at_lists.RWTH-Aachen.DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/curry
Received on Mi Apr 15 2009 - 13:50:31 CEST