ejgertz / AMWA

Atmospheric Monitoring with Arduino
13 stars 14 forks source link

error message stray # #5

Closed jsmleete closed 6 years ago

jsmleete commented 6 years ago

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_jun11b:1: error: expected unqualified-id before '+' token

+#include

^

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 commented 6 years ago

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