how should i be able to fix this error im about to paste below?
c:/users/ilove/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avrxmega3/crtatmega4809.o:../../../../crt1/gcrt1.S:310: undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
for further details on my arduino:
Board:arduino nano every
Did i check the correct board?: yes
port im using: com4
const int led = 13;
void setup() {
// put your setup code here, to run once:
pinMode(led,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(led,HIGH);
delay(500);
digitalWrite(led,LOW);
delay(500);
}
Can you compile any other sketches for the nano every, such as the example blink sketch?
Possibly a bad install of the IDE, or an antivirus program either deleted a file, or is interfering with the files created during the compilation.