[erlang-questions] Flymake & include_lib

Matthew Dempsky matthew@REDACTED
Fri May 30 17:27:26 CEST 2008


On Thu, May 29, 2008 at 9:26 AM, Anders Nygren <anders.nygren@REDACTED> wrote:
> main([File_Name]) ->
>   Incls = [{i,Dir} || Dir <- filelib:wildcard("../../*/include")],
>   compile:file(File_Name, Incls++[warn_obsolete_guard,
>                            warn_unused_import,
>                            warn_shadow_vars,
>                            warn_export_vars,
>                            strong_validation,
>                            report]).

You'd be better off adding ../../*/ebin to the code path and using
-include_lib how it's intended to be used.



More information about the erlang-questions mailing list