[erlang-questions] Réf. : Re: Two little questions

Olivier BOUDEVILLE <>
Wed Jul 18 10:37:20 CEST 2007


Hi,

thanks for the information ! I did not know that c() could have a second
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 : http://www.erlang.org/doc/man/c.html

Thanks again,

Olivier.
---------------------------
Olivier Boudeville

EDF R&D : 1, avenue du Général de Gaulle, 92140 Clamart, France
Département SINETICS, groupe ASICS (I2A), bureau C-052
Office : 33 1 47 65 59 58 / Mobile : 33 6 16 83 37 22 / Fax : 33 1 47 65 
34 24





17/07/2007 10:34

 
        Pour :  
        cc :    
        Objet : Re: [erlang-questions] Two little questions


On 16/07/07, Olivier BOUDEVILLE <> wrote:
>
> Hi,
>
> sorry if it's an obvious question, but how to specify to the erl 
interpreter
> which include directories should be scanned for *.hrl file when using
> 'c(my_module).' ? (a I tried with no luck '-code_path_cache' and 
'-pa'/'-pz'
> (I suppose both must be for precompiled modules (beam)), but I did not 
find
> header counterparts (I lack the C/C++ -I directive). Had to create a 
symlink
> instead.

If you are using the -include directive:
c(my_module, [{i, "../include1"}, {i, "../include2"}]).

If you are using the -include_lib directive, as
-include_lib("app1/include/some_file.hrl").

Then make sure that "app1/ebin" is in your code path.

Chandru


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070718/aab3dfcb/attachment.html>


More information about the erlang-questions mailing list