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
if you would like any details do ask me
Thanks in advance for anyone who can help!
Welcome to the forum
Moved to Programming category
Please post the sketch that produces the error, using code tags when you do
alright thank you!
also here is the sketch
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);
}
Thank you
The problem does not appear to be with the sketch. Exactly which board have you got selected in the IDE ?
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.