Problem executing a program

Bengt Kleberg bengt.kleberg@REDACTED
Thu Aug 26 08:55:02 CEST 2004


Guillermo Fernandez Castellanos wrote:
> Hi,
> 
> I have been trying to test very easy programs with Erlang.
> I have made a standard installation of Erlang (configure
> --prefix=/home/myhome; make; make install) after reading the README
> 
> When I try to execute this program:
> 
> -module(hello).
> 
> -export([start/1]).
> 
> -include_lib("kernel/include/file.hrl").
> %%**HERE**
> 
> start(Args) ->
>     io:format("Hello world~nArgs=~p~n", [Args]),
>     erlang:halt().
> 
> $ ecc test.erl
> works just well.
> 
> But when I add in %%**HERE** the line:
> -include_lib("megaco/include/megaco.hrl").
> it just do not work anymore:
> $ecc test.erl
> ./test.erl:6: can't find include lib "megaco/include/megaco.hrl"
> 
greetings,

since this could be 2 very different kinds of errors it would be nice if 
you could tell me if the file "megaco/include/megaco.hrl" exists on your 
system.


bengt



More information about the erlang-questions mailing list