Hi all,
I've created sample.c file with:
int difference (int x, int y) {
return x > y ? x - y: y - x;
}
Run gcc and ld:
pmatos@euler sml_c_scheme $ gcc -c sample.c -o sample.o
pmatos@euler sml_c_scheme $ ld -o sample.so sample.o
ld: warning: cannot find entry symbol _start; defaulting to
0000000008048094
pmatos@euler sml_c_scheme $
Created an sml file with:
fun get_sym lib sym = load_sym (load_lib lib) sym;
Ran poly and evaluated the file and I got:
Error: in '/tmp/sml6042nwv', line 1.
Value or constructor (load_sym) has not been declared
Found near load_sym(load_lib(lib))(sym)
Error: in '/tmp/sml6042nwv', line 1.
Value or constructor (load_lib) has not been declared
Found near load_sym(load_lib(lib))(sym)
Exception- Fail "Static errors (pass2)" raised
Do I need to import something? What's wrong?
Best regards,
A Merry Christmas and a Happy New Year,
--
Paulo J. Matos : pocm [_at_] mega . ist . utl . pt
Instituto Superior Tecnico - Lisbon
Computer and Software Eng. - A.I.
- > http://mega.ist.utl.pt/~pocm
---
-> God had a deadline...
So, he wrote it all in Lisp!
Hi all,
I'm trying to build PolyML from scratch so I got the basis, driver and
mlsource tarballs and unpacked driver, then unpacked basis and mlsource
into driver, did the symlink for CodeCons and in the drive dir I ran:
pmatos@euler driver $ ./poly ML_dbase < mlsource/BuildAll.sml
Poly/ML RTS version I386-4.1.3 (15:24:34 Dec 10 2003)
Copyright (c) 2002 CUTS and contributors.
Running with heap parameters (h=10240K,ib=2048K,ip=100%,mb=6144K,mp=20%)
Unable to open ML_dbase
Can anybody please explain me what's the problem?
I'm just trying to follow the instructions at:
http://www.polyml.org/download.html
Best regards,
--
Paulo J. Matos : pocm [_at_] mega . ist . utl . pt
Instituto Superior Tecnico - Lisbon
Computer and Software Eng. - A.I.
- > http://mega.ist.utl.pt/~pocm
---
-> God had a deadline...
So, he wrote it all in Lisp!
Hi all,
Where can I find printable documentation (PS, PDF, DVI) for the Poly/ML
compiler?
Best regards,
--
Paulo J. Matos : pocm [_at_] mega . ist . utl . pt
Instituto Superior Tecnico - Lisbon
Computer and Software Eng. - A.I.
- > http://mega.ist.utl.pt/~pocm
---
-> God had a deadline...
So, he wrote it all in Lisp!