Go Down

Topic: compiling program (Read 181 times) previous topic - next topic


Can't seem to compile my program in project 2.  Matches exercise but will not compile.
Says "expected unqualified id before numeric contant".  Not sure if I'm doing this right.


May 04, 2019, 06:47 pm Last Edit: May 04, 2019, 06:54 pm by AWOL
We can't see your code.

Don't forget to use code tags.

compile my program in project 2. 
Project 2 of what?


Arduino project book. 


Please post your full sketch.

If possible, you should always post code directly in the forum thread as text using code tags:
  • Do an Auto Format (Tools > Auto Format in the Arduino IDE or Ctrl + B in the Arduino Web Editor) on your code. This will make it easier for you to spot bugs and make it easier for us to read.
  • In the Arduino IDE or Arduino Web Editor, click on the window that contains your sketch code.
  • Press "Ctrl + A". This will select all the text.
  • Press "Ctrl + C". This will copy the selected text to the clipboard.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the sketch between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.
  • Repeat the above process if your sketch has multiple tabs.

This will make it easy for anyone to look at it, which will increase the likelihood of you getting help.

Please understand that many of the people on this forum don't own the Arduino project book. There may be multiple different books called "Arduino project book". It's also quite common that when people copy code from the book they introduce some errors. So it's essential that we can look at the actual code you're compiling.


Arduino project book. 
We still can't see your code.

(I don't own a copy of something called "Arduino project book") 

Go Up