2012. 3. 12.

simple compile erlang

I read that  I must use 'c' to compile in erlang. but I met error 'write error'.
I  am googling and then  I know that I must change directory with 'cd' command.
It is simple. but before I found it  It was stress to statr to learn the erlang.

c("modulefilename").   % sometimes you will meet error ' writing error'

%% method 1: you need to change working directory.

cd("pathname"). %%  which includes module file

%% method 2  

c("modulename", [{outdir, "output directory .."}]).  %% you can assign output directory option  by {outdir, "..."} .

댓글 없음:

댓글 쓰기