Erlang/OTP Forums

Author Message

<  Erlang  ~  Compiling .erl-Files (Windows Vista)

smile4free
Posted: Thu May 28, 2009 10:49 pm Reply with quote
Joined: 28 May 2009 Posts: 2
Hello,
i installed Erlang 5.7.1 on Windows Vista (Path: C:\Program Files\erl5.7.1).
When i'm starting werl.exe, i get the initial output:
Code:

Erlang R13B (erts-5.7.1) [smp:2:2] [rq:2] [async-threads:0]

Eshell V5.7.1  (abort with ^G)
1>


I suppose, that's correct. Now i want to compile a file "tut1.erl" wich contains the following code:

Code:

-module(tut1).
-export([double/1]).

double(X) ->
    2 * X.


I try to acchieve this by writing c(tut1). Then i get the following output:
Code:

./tut1.erl:1: syntax error before: '-'
./tut1.erl:2: syntax error before: p
./tut1.erl:4: syntax error before: o
./tut1.erl:5: no module definition
error


Can anybody tell me, what i am doing wrong?
View user's profile Send private message
Mazen
Posted: Fri May 29, 2009 8:58 am Reply with quote
User Joined: 20 Jul 2006 Posts: 164 Location: London
Hmm... hidden characters maybe?

Truly bizarre problem... Very Happy

works for me Wink
View user's profile Send private message
smile4free
Posted: Sat May 30, 2009 12:41 pm Reply with quote
Joined: 28 May 2009 Posts: 2
Hallo,
thank you for tryin' it. I reinstalled Erlang, now it works just fine (so far).

I suppose somehow the first installation went wrong.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum