Reputation: 18669
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 source.
Upvotes: 2
Views: 2481
Reputation: 16577
It means your module has two -module(...)
directives, which is not allowed. Check the source code of the module.
Upvotes: 4