Reputation:
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!
Upvotes: 2
Views: 240
Reputation: 164
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
Upvotes: 1
Reputation: 26131
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
Upvotes: 2