xp系统Arduino编译时,出现collect2.exe: error: ld returned 5 exit status的解决方案
来源:互联网 发布:手机里网络错误怎么办 编辑:程序博客网 时间:2024/05/21 10:23
1.运行环境
Windows xp;
Arduino1.6.5 IDE.
2.问题
在Arduino编译时,出现如下的错误:
collect2.exe: error: ld returned 5 exit status
exit status 1
3.来自国外论坛替换文件的解决方案
Finally, your solution is OK:
最终,你的解决方案是ok的:
- in IDE 1.6.1, 1.6.2 or 1.6.3, rename the file ld.exe (i.e. OLD-ld.exe)
in directory C:\Programs\Arduino\hardware\tools\avr\avr\bin;
在ide1.6.1, 1.6.2 or 1.6.3,(我的是1.6.5)的安装路径C:\Programs\Arduino\hardware\tools\avr\avr\bin下 重命名ld.exe (例如OLD-ld.exe);
- copy another file ld.exe from IDE 1.0.6.
复制低版本ide 1.0.6的ld.exe到当前版本。(我找的是1.0.5版的,也可以)
详见原文
http://forum.arduino.cc/index.php?topic=316146.0
oldmaker
- Newbie
- Posts: 11
- Karma: 1 [add]
Hi f41_ardu,
you are rigth, at least partially.
At last I found time for a complete series of tests about your solution; these are the results:
Context: IDE 1.6.3, Windows XP SP3, Arduino Uno
Test 1: files ld.exe and ld.bfd.exe copied from a previous IDE version
Test 2: file ld.exe copied from a previous IDE version and original ld.bfd.exe
Test 3: only file ld.exe copied from a previous IDE without ld.bfd.exe
- Files from IDE 1.6.0, tests 1, 2 and 3
result: "collect2.exe: error: ld returned 53 exit status", without Windows crash
- Files from IDE 1.5.8, tests 1, 2 and 3
result: "collect2.exe: error: ld returned 53 exit status", without Windows crash
- Files from IDE 1.0.6, tests 2 and 3
result: SUCCESS ! The sketch compiles fine
Note 1: I remind that using IDE 1.6.1, 1.6.2 or 1.6.3, the result is a Windows crash message followed by "collect2.exe: error: ld returned 5 exit status".
Note 2: using file ld.exe copied from IDE 1.0.6, there is no need to rename original ld.bfd.exe, because in 1.0.6 it doesn't exist.
Finally, your solution is OK:
- in IDE 1.6.1, 1.6.2 or 1.6.3, rename the file ld.exe (i.e. OLD-ld.exe) in directory C:\Programs\Arduino\hardware\tools\avr\avr\bin;
- copy another file ld.exe from IDE 1.0.6.
you are rigth, at least partially.
At last I found time for a complete series of tests about your solution; these are the results:
Context: IDE 1.6.3, Windows XP SP3, Arduino Uno
Test 1: files ld.exe and ld.bfd.exe copied from a previous IDE version
Test 2: file ld.exe copied from a previous IDE version and original ld.bfd.exe
Test 3: only file ld.exe copied from a previous IDE without ld.bfd.exe
- Files from IDE 1.6.0, tests 1, 2 and 3
result: "collect2.exe: error: ld returned 53 exit status", without Windows crash
- Files from IDE 1.5.8, tests 1, 2 and 3
result: "collect2.exe: error: ld returned 53 exit status", without Windows crash
- Files from IDE 1.0.6, tests 2 and 3
result: SUCCESS ! The sketch compiles fine
Note 1: I remind that using IDE 1.6.1, 1.6.2 or 1.6.3, the result is a Windows crash message followed by "collect2.exe: error: ld returned 5 exit status".
Note 2: using file ld.exe copied from IDE 1.0.6, there is no need to rename original ld.bfd.exe, because in 1.0.6 it doesn't exist.
Finally, your solution is OK:
- in IDE 1.6.1, 1.6.2 or 1.6.3, rename the file ld.exe (i.e. OLD-ld.exe) in directory C:\Programs\Arduino\hardware\tools\avr\avr\bin;
- copy another file ld.exe from IDE 1.0.6.
找到另一个方案
http://www.cnblogs.com/hyper99/p/Arduino-shang-Collect2exe-error-ld-returned-5-exit.html
阅读全文
0 0
- xp系统Arduino编译时,出现collect2.exe: error: ld returned 5 exit status的解决方案
- 【Qt】编译时collect2.exe:-1: error: error: ld returned 1 exit status
- collect2.exe: error: ld returned 1 exit status
- 自学QT之QT编程中出现collect2.exe:-1: error: error: ld returned 1 exit status的解决办法
- QT4 编译错误 error: collect2: ld returned 1 exit status
- QT4 编译错误 error: collect2: ld returned 1 exit status
- QT4 编译错误 error: collect2: ld returned 1 exit status
- QT4 编译错误 error: collect2: ld returned 1 exit status
- Linux gcc编译error:"collect2: ld returned 1 exit status"
- QT4 编译错误 error: collect2: ld returned 1 exit status
- 关于Qt交叉编译过程中出现的collect2: ld returned 1 exit status问题的解决方案
- error: collect2: ld returned 1 exit status
- error: collect2: ld returned 1 exit status
- error: collect2: ld returned 1 exit status
- collect2: error: ld returned 1 exit status
- collect2: error: ld returned 1 exit status
- 自定义库引用时编译出错“collect2: error: ld returned 1 exit status”
- centos7.1 QT5编译出现:cannot find -lGL 和 collect2:error:ld returned 1 exit status 错误
- WebRTC学习之ICE深入理解
- 使用python获取email的subject中带有指定字符串的邮件
- leetcode--Balanced Binary Tree
- 深入理解jquery新的绑定事件机制on方法的使用(推荐)
- React常见问题集锦
- xp系统Arduino编译时,出现collect2.exe: error: ld returned 5 exit status的解决方案
- impala的原理架构介绍及应用场景
- log4j配置文件详解
- 剑指Offer:二叉搜索树的第K个结点
- vscode: Visual Studio Code 常用快捷键
- 进行批量操作-审核或弃审
- iOS开发中录制视频报错NSInvalidArgumentException
- Ubuntu 使用terminal安装tensorflow,出现的错误锦集
- 原码,补码,反码