看板 ASM 關於我們 聯絡資訊
各位版上的大大晚上好。 我正在測試一個調光的程式,我都按照書上的打,但是編譯的時候就會出現錯誤。 錯誤訊息如下。 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--){ analogWrite(LED,i); delay(10); } } 煩請高手指導,感謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.195.98.141 ※ 文章網址: https://www.ptt.cc/bbs/ASM/M.1525784389.A.7D0.html
god145145: 程式碼沒問題 你同份文件上面還很多程式? 05/08 23:47
yimean: 對,但是我都註解掉了 05/09 13:11
yimean: 我重新砍掉所有註解就正常了。請大家不用傷腦筋了。 05/09 21:48
magentatt: 照理來說註解不影響程式吧~~ 05/12 01:05