<br><font size=2 face="Courier New">Hi,<br>
<br>
thanks for the information ! I did not know that c() could have a second<br>
parameter. That's what I needed. Actually I did not know that c was a module of its own, and that it was documented here : </font><font size=2><tt>http://www.erlang.org/doc/man/c.html</tt></font><font size=2 face="Courier New"><br>
<br>
Thanks again,<br>
<br>
Olivier.</font>
<br><font size=2 face="sans-serif">---------------------------<br>
Olivier Boudeville<br>
<br>
EDF R&D : 1, avenue du Général de Gaulle, 92140 Clamart, France<br>
Département SINETICS, groupe ASICS (I2A), bureau C-052<br>
Office : 33 1 47 65 59 58 / Mobile : 33 6 16 83 37 22 / Fax : 33 1 47 65 34 24</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>chandrashekhar.mullaparthi@gmail.com</b></font>
<p><font size=1 face="sans-serif">17/07/2007 10:34</font>
<br>
<td><font size=1 face="Arial">        </font>
<br><font size=1 face="sans-serif">        Pour :        olivier.boudeville@edf.fr</font>
<br><font size=1 face="sans-serif">        cc :        erlang-questions@erlang.org</font>
<br><font size=1 face="sans-serif">        Objet :        Re: [erlang-questions] Two little questions</font></table>
<br>
<br>
<br><font size=2 face="Courier New">On 16/07/07, Olivier BOUDEVILLE <olivier.boudeville@edf.fr> wrote:<br>
><br>
> Hi,<br>
><br>
> sorry if it's an obvious question, but how to specify to the erl interpreter<br>
> which include directories should be scanned for *.hrl file when using<br>
> 'c(my_module).' ? (a I tried with no luck '-code_path_cache' and '-pa'/'-pz'<br>
> (I suppose both must be for precompiled modules (beam)), but I did not find<br>
> header counterparts (I lack the C/C++ -I directive). Had to create a symlink<br>
> instead.<br>
<br>
If you are using the -include directive:<br>
c(my_module, [{i, "../include1"}, {i, "../include2"}]).<br>
<br>
If you are using the -include_lib directive, as<br>
-include_lib("app1/include/some_file.hrl").<br>
<br>
Then make sure that "app1/ebin" is in your code path.<br>
<br>
Chandru<br>
</font>
<br>
<br>