The
The current working directory,
Compiles one or more files. The files must include the extension,
for example,
The following flags are supported:
Instructs the compiler to search for include files in
the
The base name of the compiled file
The directories specified using option
The directory where the compiler is to place the output files. Defaults to the current working directory.
Defines a macro.
Defines a macro with the specified value. The value can be any Erlang term. Depending on the platform, the value may need to be quoted if the shell itself interprets certain characters. On Unix, terms containing tuples and lists must be quoted. Terms containing spaces must be quoted on all platforms.
Makes all warnings into errors.
Sets warning level to
Same as
Enables verbose output.
Specifies the type of output file.
Compiles using the SMP emulator. This is mainly useful for compiling native code, which must be compiled with the same runtime system that it is to be run on.
Produces a Makefile rule to track header dependencies. The
rule is sent to
As option
Same as
In conjunction with option
As option
In conjunction with option
In conjunction with option
Signals that no more options will follow. The rest of the arguments is treated as filenames, even if they start with hyphens.
A flag starting with a plus (
erlc +export_all file.erl
Depending on the platform, the value may need to be quoted if the shell itself interprets certain characters. On Unix, terms containing tuples and lists must be quoted. Terms containing spaces must be quoted on all platforms.
The following flags are useful in special situations, such as rebuilding the OTP system:
Appends
Appends
The following compilers are supported:
Erlang source code. It generates a
Options
Supported options:
Erlang assembler source code. It generates a
Supported options: same as for
Erlang core source code. It generates a
Supported options: same as for
Yecc source code. It generates an
Use option
Supported options:
MIB for SNMP. It generates a
Supported options:
A compiled MIB for SNMP. It generates a
Supported options:
Script file. It generates a boot file.
Use option
Supported option:
ASN1 file. It creates an
Supported options:
IC file. It runs the IDL compiler.
Supported options: