极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14640|回复: 5

OCROBOT 0.1.1出现这个问题 求解决

[复制链接]
发表于 2017-5-17 18:50:33 | 显示全部楼层 |阅读模式
Arduino:0.1.1 (Windows XP), 开发板:"Arduino Uno"

collect2.exe: error: ld returned 5 exit status

exit status 1
为开发板 Arduino Uno 编译时出错。

collect2.exe: error: ld returned 5 exit status

exit status 1
回复

使用道具 举报

 楼主| 发表于 2017-5-17 18:52:36 | 显示全部楼层
注释掉delay函数就可以通过了      
回复 支持 反对

使用道具 举报

发表于 2017-5-17 20:44:27 | 显示全部楼层
什么代码?我们去测试下。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-5-17 21:02:48 | 显示全部楼层
  1. /*
  2.   Blink
  3.   Turns on an LED on for one second, then off for one second, repeatedly.

  4.   Most Arduinos have an on-board LED you can control. On the Uno and
  5.   Leonardo, it is attached to digital pin 13. If you're unsure what
  6.   pin the on-board LED is connected to on your Arduino model, check
  7.   the documentation at http://www.arduino.cc

  8.   This example code is in the public domain.

  9.   modified 8 May 2014
  10.   by Scott Fitzgerald
  11. */


  12. // the setup function runs once when you press reset or power the board
  13. void setup() {
  14.   // initialize digital pin 13 as an output.
  15.   pinMode(13, OUTPUT);
  16. }

  17. // the loop function runs over and over again forever
  18. void loop() {
  19.   digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  20.   delay(1000);              // wait for a second
  21.   digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  22.   delay(1000);              // wait for a second
  23. }
复制代码



就这个IDE的例程代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-5-17 22:54:18 | 显示全部楼层
弘毅大神,IDE没问题,WIN7下没问题,,,XP下就有这样的问题
回复 支持 反对

使用道具 举报

发表于 2017-5-18 06:35:35 | 显示全部楼层
本帖最后由 弘毅 于 2017-5-18 06:37 编辑
dianjvnan 发表于 2017-5-17 22:54
弘毅大神,IDE没问题,WIN7下没问题,,,XP下就有这样的问题


这。。。。XP在我身边都已经绝迹了。。。。 微软都停止支持了。。。我也就不凑这热闹了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-4-18 21:11 , Processed in 0.043441 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表