<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div style="-webkit-text-size-adjust: auto;">I'm guessing that this:</div><div style="-webkit-text-size-adjust: auto;"><br></div><div><pre class="line-pre" style="box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; width: 748px;"><div class="line" id="file-gistfile1-erl-LC3" style="box-sizing: border-box;"><font face="UICTFontTextStyleBody"><span style="white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"> <span class="nv" style="box-sizing: border-box;">Morphology</span> <span class="o" style="box-sizing: border-box; font-weight: bold;">=</span> <span class="nv" style="box-sizing: border-box;">SpecCon</span><span class="nl" style="box-sizing: border-box;">#constraint.morphology</span><span class="p" style="box-sizing: border-box;">,</span></span></font></div></pre><div><br></div>Is setting Morphology to 'undefined' - that's what the stack trace looks to be saying.</div><div><br></div><div>Cheers,</div><div><br></div><div>Steve</div><div><br><span style="-webkit-text-size-adjust: auto;">Sent from my iPhone</span></div><div style="-webkit-text-size-adjust: auto;"><br>On 16 Aug 2014, at 04:54, "Yves S. Garret" <<a href="mailto:yoursurrogategod@gmail.com">yoursurrogategod@gmail.com</a>> wrote:<br><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><div dir="ltr"><div>Hello,<br><br></div>This is my code:<br><a href="https://gist.github.com/anonymous/5b9b2c55a7684f5386e2">https://gist.github.com/anonymous/5b9b2c55a7684f5386e2</a><br><div><br>When I run my code inside of erlang (17.0), this is the error that I get:<br>
7> genotype:create_test().<br>{aborted,{undef,[{morphology,undefined,[sensors],[]},<br> {morphology,get_InitSensors,1,<br> [{file,"morphology.erl"},{line,8}]},<br> {genotype,construct_Cortex,3,<br>
[{file,"genotype.erl"},{line,41}]},<br> {genotype,construct_Agent,3,<br> [{file,"genotype.erl"},{line,20}]},<br> {genotype,'-create_test/0-fun-0-',0,<br>
[{file,"genotype.erl"},{line,434}]},<br> {mnesia_tm,apply_fun,3,[{file,"mnesia_tm.erl"},{line,833}]},<br> {mnesia_tm,execute_transaction,5,<br>
[{file,"mnesia_tm.erl"},{line,813}]},<br> {erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,661}]}]}}<br><br></div><div>genotype.erl and morphology.erl are in the directory, so why can't genotype's function call morphology's functions? Or am I missing something else entirely?<br>
<br></div><div>Thanks.<br></div></div>
</div></blockquote><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>