Folks--<div><br></div><div>I've worked out how to load code from *.ez files. The zip archive is arranged like:</div><div><br></div><div> mylib/ebin/whatever.beam</div><div> mylib/include/whatever.hrl</div><div><br>
</div><div>If I set ERL_LIBS to point to the directory containing the *.ez file, it's properly loaded on my code path, and I can compile and make use of the modules in the library.</div><div><br></div><div>So far, so good.</div>
<div><br></div><div>The problem is that I can't use header files located inside the *.ez file.</div><div><br></div><div>With:</div><div><br></div><div> -include_lib("mylib/include/whatever.hrl").</div><div>
<br></div><div>the compiler can't find the file, even if the *.ez is on the code path.</div><div><br></div><div>Am I doing something wrong here, or is it by design that header files must reside OUTSIDE the compressed archive?</div>
<div><br></div><div>I suppose it doesn't do much good for the hrl files to be inside an archive where you can't see them, but I'm interested in it being possible if only to make the distribution of code libraries a little bit easier (similar to how easy it is to ship JAR files around).</div>
<div><br></div><div>Keith</div>