system
November 8, 2014, 7:31pm
1
Hi, I'm brand new to this so please forgive me
I've configured the Spaceship Interface project and have double and triple checked my wiring and coding and still get the following error message:
Arduino: 1.5.8 (Windows 7), Board: "Arduino Uno"
_test1.ino:5:1: error: expected unqualified-id before numeric constant
_test1.ino:6:1: error: expected unqualified-id before numeric constant
_test1.ino:8:3: error: expected unqualified-id before numeric constant
_test1.ino:12:3: error: expected unqualified-id before numeric constant
_test1.ino:18:3: error: expected unqualified-id before numeric constant
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Can anyone please tell me what I'm doing wrong?
Thanks so much, SquakMe
system
November 8, 2014, 7:33pm
2
Out of interest have you tried it without connecting any electronics?
system
November 8, 2014, 7:37pm
3
Yes, whether the board is connected to the computer or not I get the same code error.
system
November 8, 2014, 7:46pm
4
I meant with the board connected to the computer but not what ever you have wired to it.
system
November 8, 2014, 7:53pm
5
I have run two other projects successfully with the board before this one, both connected to the computer properly. Does that answer your question?
system
November 8, 2014, 7:55pm
6
No.
It says the board did work, it doesn't say it still does.
What it seems to suggest is that you do have a wiring fault somewhere, but I wanted you to confirm to yourself that the board is fine before suggesting you have a really good look over your wiring.
system
November 8, 2014, 8:24pm
7
Thanks, yes it does look like a coding error based on the error messages, but I would've thought the error messages were standardized and I should be able to lookup what these mean?
I've gone over the code and the wiring a bunch, kind of out of ideas in terms of rechecking everything.
system
November 8, 2014, 8:26pm
8
Sorry, you said wiring error, and I'm thinking coding error.
system
November 8, 2014, 9:07pm
9
Ah sorry, I thought you were getting that on upload not on compilation.
I think you may have an issue with the code...
In which case you should post this under programming questions with your actual code.
system
November 8, 2014, 9:13pm
10
Oh, got it, thanks so much for the help and advice, I'll go cut and paste the code in programming. Cheers Rich (from Notts, living in the US).
system
November 8, 2014, 9:27pm
11
You need to put the code between code tags.
Is there any clue as to what lines are giving the compile error?