<div dir="ltr"><div>Done, no change:<br><br>19> c(mnes).<br>{ok,mnes}<br>20> rr("records.hrl").<br>[planemo,tower]<br>21> mnes:setup().<br>** exception error: undefined function mnesia:create_schema/1<br>
     in function  mnes:setup/0 (mnes.erl, line 24)<br><br></div>Here is records.hrl:<br><a href="http://bin.cakephp.org/view/1897069453">http://bin.cakephp.org/view/1897069453</a><br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Sat, Jan 18, 2014 at 9:32 PM, Bob Ippolito <span dir="ltr"><<a href="mailto:bob@redivi.com" target="_blank">bob@redivi.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Rename the module to something other than mnesia, there's a flat module namespace and only one module named mnesia can be loaded at a time. <div class="HOEnZb"><div class="h5"><br><br>On Saturday, January 18, 2014, Yves S. Garret <<a href="mailto:yoursurrogategod@gmail.com" target="_blank">yoursurrogategod@gmail.com</a>> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello all,<br><br>I have the following code:<br><a href="http://bin.cakephp.org/view/2135184996" target="_blank">http://bin.cakephp.org/view/2135184996</a><br>

<br></div>When I compile and reload the records, this is what happens:<br>
<br>14> c(mnesia).<br>{ok,mnesia}<br>15> rr("records.hrl").<br>[planemo,tower]<br>16> mnesia:setup().<br>** exception error: undefined function mnesia:create_schema/1<br>     in function  mnesia:setup/0 (mnesia.erl, line 25)<br>


<br></div>The function _does_ exist in the mnesia module.  I checked the docs and I'm running 16B03, so it's there.  But why this error?<br><br></div>Also, I have an another question.  Lets say I'm testing some code and I comment out where I'm calling a function (located in the same file.)  How can I tell the compiler to not worry about this file not being called?  I know I can for variables such as _Variable, but methods?<br>


</div>
</blockquote>
</div></div></blockquote></div><br></div>