我如何编译包含来自 erl shell 的 Erlang 文件?

How can I compile an Erlang file with includes from the erl shell?

erlc -I <abspath-to-include-dir> <module>.erl 在命令行上正确编译 <module>

但在 Erlang shell (erl) 中,以下会产生“找不到包含文件”的错误:

c(<module>, [{i, <abspath-to-include-dir>}]).

为什么?这两种编译文件的行为不应该是一样的吗?

尝试将路径写成目录列表,如 {i, [".../here/", ".../there/"]},即使它只是一个目录。