2
votes

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!

2

2 Answers

2
votes

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
1
votes

You usually need to specify application:start(appname) or similar in your application file before using them (to get some application to start up) and try to define them in the app.src file also, after that you should be able to use them