开发者

What does "redefining module" error in erlang mean?

I added the mochijson2.erl module to my ejabberd src directory but when I try to compile the code I get the following error:

 ./mochijson2.erl:8: redefining module

Where could this module be defined? I don't have it in my sour开发者_如何学运维ce.


It means your module has two -module(...) directives, which is not allowed. Check the source code of the module.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜