Compiling Erlang code on Windows

前端 未结 6 831
夕颜
夕颜 2021-02-08 03:48

I installed Erlang 13B and tried to follow the tutorials.

Every time I get to c(tut), I get an error instead of (ok, tut), so it seems like the

6条回答
  •  长情又很酷
    2021-02-08 04:43

    When werl's current working directory is same as the file to be compiled, the filename is given as an argument without the whole path. Otherwise, for eg. Assuming tut.erl is placed at C:\ErLang tutorials, one may try compiling as,

    c("C:\\ErLang tutorials\\tut").
    

    Note:

    1. Without double quotes the : causes syntax error
    2. The backslash is given using escape sequence

提交回复
热议问题