Search code examples
erlangconfigrebar

how to use modules that are deps in rebar.config


I am new to rebar and erlang in general and read that we can use other modules by specifying them as deps in rebar.config file. I am able to compile them properly but not sure how to use them in my module. If I try to use them, I get an error that the function is not available.

How can I use the functions from the modules that are in deps in my modules.

Thanks!


Solution

  • You have to tell code server where to find compiled code. I usually have in MakeFile something like:

    run:
        erl -pa ebin -pa deps/*/ebin