I am learning one opensource project, the homepage is here: https://github.com/kevsmith/gen_nb_server , I found that the project structure is
src/
gen_nb_server.erl
priv/
example
src/
example.erl
when I am going into example folder and run “make”, and run the example module by “example:start_link().”, it can not find gen_nb_server module, I want to know how to call the module which does not be laid in the same folder ? thanks!
You can use -pa (or -pz) to add the top-level ebin and priv/example/ebin directories to the front (or end) of your code path.