[erlang-questions] Newbie question: function include/1 undefined

Donald Steven <>
Fri Sep 30 15:25:49 CEST 2016


Hi all,

I can get '-include(' to work before the main() function, but I can't 
get it to work *in* a function, either using a comma or a period at end.

--------------------------

This works (before main()):

-include("filename.hrl").

but neither of these work:

main() ->

-include("filename.hrl").
-include("filename.hrl"),

--------------------------

Thanks for your help.

Don



More information about the erlang-questions mailing list