There are many ways to compile Erlang, and this article describes a Simple and easy-to-use approach to Windows.
1. First, create a bat file under the project directory with the following content:
"C:\Program Files (x86) \erl6.1\bin\erl.exe"-make The front directory is your erlang installation directory;
2. Then, under the project directory, create a Emakefile files, Emakefile The file format is as follows:
{[' src/* ', ' src/mod/* ', ' src/pp/* ', ' src/lib/* '],[debug_info,{outdir, ' Ebin '}]}.
The above list is the file to be compiled, the following list is the compile option,debug_info is the compiled file plus debugging information, this option can be used in ERT with im () command debugging,OutDir is the development of the compiled output file directory.
3. finally click the first step of the bat file to complete the automatic compilation, if there are errors will give a hint.
The Erlang program is compiled under Windows