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

Olivier BOUDEVILLE olivier.boudeville@REDACTED
Wed Jul 18 10:37:20 CEST 2007


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 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 :  olivier.boudeville@REDACTED
        cc :    erlang-questions@REDACTED
        Objet : Re: [erlang-questions] Two little questions

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

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

If you are using the -include_lib directive, as

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


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

More information about the erlang-questions mailing list