Pages: [1]   Go Down
Author Topic: Error message  (Read 393 times)
0 Members and 1 Guest are viewing this topic.
Herning, Denmark
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

Can anyone tell what I am doing wrong?

Why is there an Error39??

Simon

* sketch_aug18a.pde (1.73 KB - downloaded 6 times.)
Logged

Kind regards
Simon Madsen

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 46090
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What do you mean by "Error39"? Post the exact message you are getting, and describe what you do to get that message.

Also, what operating system are you using? What version of the IDE? What board?

That code will not compile for me:
Quote
sketch_aug18a.cpp: In function 'void loop()':
sketch_aug18a:39: error: 'TNCVAL' was not declared in this scope
sketch_aug18a:43: error: expected `}' before 'else'
sketch_aug18a:79: error: 'COIL13' was not declared in this scope
sketch_aug18a.cpp: At global scope:
sketch_aug18a:85: error: expected declaration before '}' token
Logged

Herning, Denmark
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Error39
sorry about that smiley-sad guess I got a little confused smiley-grin

I use Windows 7 Home Premium 64-bit

I downloaded the IDE from arduino.cc like a week ago. Where can I see what version I've got?
Logged

Kind regards
Simon Madsen

New Jersey
Offline Offline
Faraday Member
**
Karma: 48
Posts: 3417
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this the Error39 you are referring to?
sketch_aug18a:39: error: 'TNCVAL' was not declared in this scope

If so, the 39 refers to the line the compiler found the error. Note that this isn't likely to be the line number in your program because of the preprocessing the IDE does.

That error is telling you you're using TNCVAL as a variable, but you haven't declared it anywhere. A simple way to remedy that is:
Code:
 int TNCVAL = analogRead(0);

There are a number of other compilation errors you'll need to fix after that one though
Logged

Herning, Denmark
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you smiley-grin

That did it
Logged

Kind regards
Simon Madsen

Pages: [1]   Go Up
Jump to: