<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 13, 2013 at 10:33 PM, Andrew Pennebaker <span dir="ltr"><<a href="mailto:andrew.pennebaker@gmail.com" target="_blank">andrew.pennebaker@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I'm trying to get my command line Erlang program, ios7crypt.erl, to compile and run, but I'm getting an error.<div>
<br></div><div>Source:</div><div><br></div><div><a href="https://github.com/mcandre/ios7crypt/blob/master/erlang/ios7crypt.erl" target="_blank">https://github.com/mcandre/ios7crypt/blob/master/erlang/ios7crypt.erl</a></div>

<div><br></div><div>Trace:</div><div><br></div><div><div><font face="courier new, monospace">$ make</font></div><div><font face="courier new, monospace">erlc -Wall +debug_info ios7crypt.erl</font></div><div><font face="courier new, monospace">erl -noshell -s ios7crypt -- -e monkey</font></div>

<div><font face="courier new, monospace">{"init terminating in do_boot",{undef,[{ios7crypt,start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}</font></div><div><font face="courier new, monospace"><br></font></div>

<div><font face="courier new, monospace">Crash dump was written to: erl_crash.dump</font></div><div><font face="courier new, monospace">init terminating in do_boot ()</font></div><div><font face="courier new, monospace">make: *** [test] Error 1</font></div>

<div><br></div><div>Am I using the wrong syntax to run ios7crypt, or am I declaring the start/1 function incorrectly?</div></div></div></blockquote><div><br></div><div>Your command line calls start/0, not start/1. If you want the latter, you need to pass an argument on your command line. Or maybe you could add a start/0 function. See the doc for -s here:</div>
<div><br></div><div><a href="http://erlang.org/doc/man/erl.html">http://erlang.org/doc/man/erl.html</a></div><div><br></div><div>--steve</div></div></div></div>