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,
On Friday, Dec 19, 2003, at 13:44 Europe/London, Paulo Jorge de Oliveira Cantante de Matos wrote:
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?
A good start would be open CInterface;
Season's Greetings, David.