[问题] 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