[問題] Arduino編譯問題

作者: jasonlee1001 (Jason)   2015-05-09 06:22:49
大家好,小弟最近開始學習 Arduino, 用的板子是 UNO R3.
XP SP3, 才第一支成是就卡住了.
int val;
int ledpin=13;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(ledpin,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
val = Serial.read();
if (val == 'R') {
digitalWrite(ledpin,HIGH);
delay(500);
digitalWrite(ledpin,LOW);
delay(500);
Serial.println("Hello World!");
}
}
編譯後秀出:
collect2.exe: error: ld returned 5 exit status
我安裝了 1.6.3 和 1.6.4 版都會這樣.
有人遇過這個錯誤訊息嗎 ?
要如何解呢 ?
目前正逐步安裝回舊版 (感謝 Arduino 官網還保留舊版給下載 !) 試試看.
作者: alibuda174 (阿哩不達)   2015-05-09 08:03:00
奇怪且難解的問題
作者: jasonlee1001 (Jason)   2015-05-09 17:26:00
裝了1.6.2版在WinXP才OK. Win8的話1.6.4版也沒問題.貌似跟作業系統版本有關.

Links booklink

Contact Us: admin [ a t ] ucptt.com