Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error message stray # #5

Closed
jsmleete opened this issue Sep 4, 2018 · 1 comment
Closed

error message stray # #5

jsmleete opened this issue Sep 4, 2018 · 1 comment

Comments

@jsmleete
Copy link

jsmleete commented Sep 4, 2018

I am receiving this error message trying to load the eeprom sketch:
Arduino: 1.6.11 (Windows 7), Board: "Arduino/Genuino Uno"

eeprom_jun11b:1: error: stray '#' in program

+#include <EEPROM.h>

^

eeprom_jun11b:1: error: expected unqualified-id before '+' token

+#include <EEPROM.h>

^

eeprom_jun11b:6: error: expected unqualified-id before '+' token

+int record = 0;

^

eeprom_jun11b:7: error: expected unqualified-id before '+' token

+unsigned int Sensor1 = 0;

^

eeprom_jun11b:8: error: expected unqualified-id before '+' token

+unsigned int Sensor2 = 0;

^

eeprom_jun11b:9: error: expected unqualified-id before '+' token

^

eeprom_jun11b:11: error: expected unqualified-id before '+' token

+int m;

^

eeprom_jun11b:12: error: expected unqualified-id before '+' token

^

eeprom_jun11b:13: error: expected unqualified-id before '+' token

+void setup()

^

exit status 1
stray '#' in program

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@jsmleete jsmleete closed this as completed Sep 5, 2018
@jsmleete
Copy link
Author

jsmleete commented Sep 5, 2018

This was also resolved by cutting a few lines at the beginning of the downloaded code to match what is published in the book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant