Okay I was trying to simplify the code as much as possible so that I didn't get that error message and figured it would compile even without the "void setup" part. Anyways I have the starter kit and I have copied the code exactly out of the book and I am still getting the same error code
Here is my code(I apologize, I am not sure how to use the "code tags")
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
const int sensorPin = A0;
int switchState = 0;
int prevSwitchStae = 0;
int reply;
void setup() {
lcd.begin(16,2);
pinMode (sensorPin,INPUT);
lcd.print("ask the");
lcd.setCursor(0,1);
lcd.print("Crstal Ball!");
}
and then after attempting to compile that code it gives me this error message :
core.a(main.cpp.o): In function main': C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/main.cpp:14: undefined reference to loop'