<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 24, 2015 at 3:44 PM, Harit Himanshu <span dir="ltr"><<a href="mailto:harit.subscriptions@gmail.com" target="_blank">harit.subscriptions@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What is going wrong here?</blockquote></div><br>Good tools for debugging these kinds of things:</div><div class="gmail_extra"><br></div><div class="gmail_extra">The 'undefined function' errors occurs even in the case where there is no such module loaded. So first, you should make sure there is such a module, by using, for instance, the m/0 command of the shell. An alternative is to ask the code loader for the location of the module, `code:which(lib_chan)`.</div><div class="gmail_extra"><br></div><div class="gmail_extra">If the module is loaded, you can ask for its info, by executing</div><div class="gmail_extra"><br></div><div class="gmail_extra">m(lib_chan).</div><div class="gmail_extra"><br></div><div class="gmail_extra">which can be used to verify there is a function named `start` of arity 0.</div><div class="gmail_extra"><br></div><div class="gmail_extra">In this case, my hunch would be that the module is not loaded, probably due to a loader path which is not set. And since it is nowhere to be found, the system will not allow you to call a function in a module which is not even accessible to the system.<br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">J.</div>
</div></div>