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

8e2ybdfx  于 2022-12-08  发布在  Erlang
关注(0)|答案(1)|浏览(150)

Can Erlang file create .beam file for the imported Erlang file?
For example I have test1.erl and test2.erl file and test1.erl is imported in test2.erl . Then compiling test2.erl using

erlc test2.erl

Then, will it create only test2.beam or both test1.beam and test2.beam ?

0x6upsns

0x6upsns1#

您需要编译两个文件test1.erltest2.erl

$ erlc test1.erl test2.erl

相关问题