sae, io:format(), undefined

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

sae, io:format(), undefined

Bengt Kleberg-3

When creating a sae program doing io:format("hello, world") I get an
error message when running:
undef[{ io, format, 2}, ...

The supplied example hello.erl program works. It uses erlang:display()
instead of io:format(). Should I have added the io module to elink?
Just doing
elink -o hello -m hello io -s hello get_args
does not work.

Moreover, my original 'hello, world' program had a 0 arity entry
function. This was not allowed by elink. Perhaps the argument of the
entry function (it is a list, isn't it?) should be documented?

Best Wishes,
Bengt Kleberg