[erlang-questions] Include files location

Mazen Harake mazen@REDACTED
Mon Jun 25 15:43:51 CEST 2007


When you compile your files (with erlc), make sure that the -I flag
points to your include directory.
See the -I option here: http://www.erlang.org/doc/man/erlc.html

Same goes for make (Emakefile): http://www.erlang.org/doc/man/make.html

/Mazen

Kirill Zaborski wrote:
> I want to use include files in my application. I have seen that a lot
> of applications (e.g. OTP) use separate folder "include" for such
> files. But in the source code (e.g. in src/somefile.erl) I see
> -include("somefile.hrl").
> And somefile.hrl is in the mentioned "include" directory. And erlang
> compiler says that it can not find somefile.hrl
> Do I need to specify some extra options?
> In the documentation
> (http://www.erlang.org/doc/reference_manual/modules.html) I see
> nothing about it.
>
> Regards,
> Kirill.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>   


-- 
Mazen Harake <mazen@REDACTED>
Erlang Software Developer and Consultant,
Erlang Training & Consulting, Ltd

Mobile Phone: +44 (0)795 13 26 317
Office Phone: +44 (0)207 45 61 020
Office Address:
401 London Fruit & Wool Exchange
Brushfield St, London, E1 6EL
United Kingdom

This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of "Erlang Training & Consulting, Ltd".

If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone. Please contact the sender if you believe you have received this email in error.




More information about the erlang-questions mailing list