4 ms·
With the latest revision I keep on getting this error: src/yanni_trainer.erl:78: type array() undefined It was introduced in revision 20. 3 files upd
by brian_herman 9y ago
With the latest revision I keep on getting this error:
src/yanni_trainer.erl:78: type array() undefined
It was introduced in revision 20.
3 files updated, 0 files merged, 1 files removed, 0 files unresolved
[bherman@archy yanni]$ hg update 19
[bherman@archy yanni]$ make
rm -f notp notp.boot
rm -fr ebin
mkdir ebin
erlc -o ebin src/*.erl deps/*/src/*.erl
src/yanni_lib.erl:77: Warning: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
src/yanni_trainer.erl:112: Warning: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
deps/*/src/*.erl: no such file or directory
make: *** [Makefile:6: default] Error 1
[bherman@archy yanni]$ hg update 20
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
[bherman@archy yanni]$ make
rm -f notp notp.boot
rm -fr ebin
mkdir ebin
erlc -o ebin src/*.erl deps/*/src/*.erl
src/yanni_lib.erl:77: Warning: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
src/yanni_trainer.erl:78: type array() undefined
src/yanni_trainer.erl:118: Warning: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
make: *** [Makefile:6: default] Error 1
[bherman@archy yanni]$ make
edit: formatting
- ramchip 9y agoI wonder if the author is running an ancient Erlang? The code looks very old school, with the lack of maps, no rebar, deprecated functions, etc. From Erlang release notes: The pre-defined types array/0, dict/0, digraph/0, gb_set/0, gb_tree/0, queue/0, set/0, and tid/0 have been deprecated. They will be removed in Erlang/OTP 18.0. Instead the types array:array/0, dict:dict/0, digraph:graph/0, gb_set:set/0, gb_tree:tree/0, queue:queue/0, sets:set/0, and ets:tid/0 can be used. (Note: it has always been necessary to use ets:tid/0.)