[英]Can Erlang file create .beam file for the imported Erlang file?
Can Erlang file create .beam
file for the imported Erlang file? Erlang 文件可以为导入的 Erlang 文件创建
.beam
文件吗?
For example I have test1.erl
and test2.erl
file and test1.erl
is imported in test2.erl
.例如,我有
test1.erl
和test2.erl
文件,并且test1.erl
被导入到test2.erl
中。 Then compiling test2.erl
using然后使用编译
test2.erl
erlc test2.erl
Then, will it create only test2.beam
or both test1.beam
and test2.beam
?那么,它会只创建
test2.beam
还是同时创建test1.beam
和test2.beam
?
You need compile both files test1.erl
and test2.erl
.您需要编译文件
test1.erl
和test2.erl
。
$ erlc test1.erl test2.erl
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.