转载请注明,来自:http://blog.csdn.net/skyman_2001
今天写了个测试模块,命名为io_lib_format,编译运行时,出现“ERROR: Shell process terminated!”错误,百思不得其解,最后google了一下,搜索到了答案:http://erlang.2086793.n4.nabble.com/Getting-a-strange-error-ERROR-Shell-process-terminated-td2114576.html
A quick guess is that your module name is the same as an already existing module
used by the shell.
With c(module_name) you produced a module_name.beam file in the
current directory.
If you start Erlang in the same directory again it will load this
module instead of the module
with the same name supposed to be used for the shell operation.
/Kenneth Erlang/OTP Ericsson
原来erlang自带的模块中有个io_lib_format模块,我的这个和它重名,这样erlang shell就会加载我的模块,而不加载自带的了。
改下模块名,使不与erlang自带的模块重名就ok了。