include vs include_lib

Peter Mechlenborg peter.mechlenborg@REDACTED
Wed Jul 22 15:20:50 CEST 2009


Hi
I have found myself starting to always use '-include_lib()' instead of just
'-include()', because it makes compilation easier - you don't need to
specify include directories, and files become "self-contained" regarding
compilation.

Why do people use '-include()' instead of '-include_lib()'?  Am I missing
something obvious here?

Have fun,

  --  Peter


More information about the erlang-questions mailing list