Erlang模块无法加载 [英] Erlang modules cant load

查看:50
本文介绍了Erlang模块无法加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从一个模块A调用某些功能到模块C时,我面临一个问题.

I am facing out a problem when I am trying to call some functions from one module A to a module C.

我有两个单独的.erl文件,这是两个erlang文件,我有一些模A的功能,希望在模块C中看到,但不能正常工作.

I have two separate .erl files, which are two erlang files, I have some functions in modulo A that would like to see in module C, but it is not working fine.

也许有人可以帮我这个忙.

Maybe someone can help me with this.

Arigatou!

推荐答案

我认为您在谈论Erlang,对吗?尝试更正您的帖子标题=).

I think you are talking about Erlang right? try to correct you Post's title =).

似乎您没有将模块A导入到C中.尝试像这样导入您的A模块:

Well it seems that you are not importing the module A into C. try importing your A module like this:

-import(Module,Functions).

并也从模块A导出功能.

and export your functions from module A also.

您可以在此处找到其他信息:在此处输入链接描述

you can find additional information here: enter link description here

关于.=)

这篇关于Erlang模块无法加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆