gpt4 book ai didi

Erlang emakefile 解释

转载 作者:行者123 更新时间:2023-12-04 05:21:54 26 4
gpt4 key购买 nike

我有一个 Emakefile看起来像:

%% --
%%
%% --

{'/Users/user/projects/custom_test/trunk/*',
[debug_info,
{outdir, "/Users/user/projects/custom_test/trunk/ebin"},
{i, "/Users/user/projects/custom_test/trunk/include/."}
]
}.
  • 对于列表中每个项目的作用,外行术语的解释是什么?
  • 如何运行 emakefile 以便能够编译它?
  • 编译后如何运行生成的BEAM文件?
  • 最佳答案

    1/{"source files globbed", Options}
    这里的选项是:

  • debug_info为调试器添加调试信息
  • {outdir, "/Users/user/projects/custom_test/trunk/ebin"}输出应该写在哪里(.beam 文件)
  • {i, "/Users/user/projects/custom_test/trunk/include/."}在哪里可以找到 .hrl头文件。

  • 2/ erl -make
    3/ erl -pa /Users/user/projects/custom_test/trunk/ebin启动一个外壳。

    找到作为应用程序入口点的模块并调用函数:
    module:start().
    您还可以以非交互方式运行代码:
    erl -noinput -noshell -pa /Users/user/projects/custom_test/trunk/ebin -s module start

    关于Erlang emakefile 解释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1667597/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com