[erlang-questions] -compile() directive

Fred Hebert (MononcQc) mononcqc@REDACTED
Wed Sep 2 19:52:39 CEST 2009


2009/9/2 paweł kamiński <kamiseq@REDACTED>

> hi,
> I cant find any description about -compile directive on the net. thanks for
> help
>
> pozdrawiam
> Paweł Kamiński
>
> kamiseq@REDACTED
> pkaminski.prv@REDACTED
> ______________________
>

If you're talking about the -compile() module attribute, the arguments you
can give it are the flags that can be used when compiling anything.
See http://erlang.org/doc/man/compile.html#file-2
It can take a single argument only, so either (as an example):
-compile(export_all). or -compile([export_all, 'E']). Some flags will make
it so the compiler doesn't save a .beam file to disk you can use
compile:output_generated(FlagList) to see if it will or not.

If you're NOT talking about the -compile() module attribute, then sorry for
the useless mail!

Hope this helps.


More information about the erlang-questions mailing list