After adding the following line
-mode(compile).
It works like a charm.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170806/0e9df650/attachment.htm>