Good day! I am installing arduino IDE v2.0.4 in my laptop. It supposed to be a very simple installation process but I bet I missed out some crucial step. Upon installation completed I tried to compile a 'blink' sketch example but it shows the compilation error with the following message:
In file included from C:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28:0, from C:\Users\User\AppData\Local\Temp\arduino\sketches\6940E8C446A6FD7CF1937A0A46DE8282\sketch\Blink.ino.cpp:1: c:\users\user\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90:10: fatal error: avr/io.h: No such file or directory #include <avr/io.h> ^~~~~~~~~~ compilation terminated.
exit status 1
Compilation error: exit status 1
May someone enlighten me which part I have done wrongly? I was selecting 'Arduino UNO' as the board used. I am using window 11.
It seems you posted the same question on Stack Overflow. By posting the same question on 2 different forums you are wasting the time of the volunteers on at least one of them. Suppose you get a satisfactory answer on Stack Overflow, the people here probably won't know so they will be wasting their time helping you.
Hi @PerryBebbington, I m sorry that I thought these two forums are separate entities. I posted here because I haven't get my problem resolved and I was thinking to reach more help in this way.
Wasting people time is never my intention and to me is a lousy move. I apologize if i have wasted your time.
They are, but that's not my point. If you ask in 2 places you have 2 lots of people trying to help with the same question, each unaware that the others might have answered you.
Have you had a satisfactory answer on Stack Overflow? Do you need help here?
Hi @sterretje thanks for your advice. I mananged to resolve the problem after uninstall the program, manually delete the hidden folders in the \Arduino15\ and resinstall the package.
Appreciate your time and effort. Thank you very much!