开发者

What does "redefining module" error in erlang mean?

开发者 https://www.devze.com 2023-03-08 07:57 出处:网络
I added the mochijson2.erl module to my ejabberd src directory but when I try to compile the code I get the following error:

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

精彩评论

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