[erlang-questions] Two little questions
Chandru
chandrashekhar.mullaparthi@REDACTED
Tue Jul 17 10:34:54 CEST 2007
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 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
More information about the erlang-questions
mailing list