简体   繁体   English

Erlang文件可以为导入的Erlang文件创建.beam文件吗?

[英]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.erltest2.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.beamtest2.beam

You need compile both files test1.erl and test2.erl .您需要编译文件test1.erltest2.erl

$ erlc test1.erl test2.erl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM