Usman Ismail
Usman Ismail

Reputation: 18669

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 source.

Upvotes: 2

Views: 2481

Answers (1)

Adam Lindberg
Adam Lindberg

Reputation: 16577

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

Upvotes: 4

Related Questions