[問題] Arduino編譯錯誤

作者: yimean (溫柔殺手)   2018-05-08 20:59:46
各位版上的大大晚上好。
我正在測試一個調光的程式,我都按照書上的打,但是編譯的時候就會出現錯誤。
錯誤訊息如下。
Arduino:1.8.5 (Windows Store 1.8.10.0) (Windows 10), 開發板:"Arduino/Genuino
Uno"
c:\program
files\windowsapps\arduinollc.arduinoide_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr\bin\
../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe:
unable to rename 'core\core.a'; reason: File exists
exit status 1
開發板 Arduino/Genuino Uno 編譯錯誤。
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
請問這是什麼意思?我要把ar.exe刪掉嗎?
我是用同一個檔案做練習,一旦完成練習後,我就把程式碼註解起來重新寫下一段。
不知道這會不會有關係?
下方是我的程式碼
#define LED 9
int i=0;
void setup(){
pinMode(LED,OUTPUT);
}
void loop(){
for (i=0;i<255;i++){
analogWrite(LED, i);
delay(10);
}
for (i=255;i>0;i
作者: god145145   2018-05-08 23:47:00
程式碼沒問題 你同份文件上面還很多程式?
作者: yimean (溫柔殺手)   2018-05-09 13:11:00
對,但是我都註解掉了
作者: magentatt (magentatt)   2018-05-12 01:05:00
照理來說註解不影響程式吧~~

Links booklink

Contact Us: admin [ a t ] ucptt.com