[英]Erlang hello world problem?
我不明白為什么這不起作用:
-module(hello).
-export([hello_world/0]).
hello_world() -> io:fwrite("hello, world\n").
(hello_world@PC)8> hello:hello_world().
** exception error: undefined function hello:hello_world/0
(hello_world@PC)9>
你編譯你的源代碼了嗎? 鍵入c(hello).
在 Eshell 中(假設hello.erl
是源文件的名稱)在調用 function 之前。
解決方法:
Go 至:運行配置
--二郎
Select 選項卡:
- 環境
然后
- 選擇
查看
- 小路
應用並運行。
現在你會對 go 很好。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.