Eclipse IDE 中的链接错误 [英] Linking error in Eclipse IDE

查看:32
本文介绍了Eclipse IDE 中的链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照以下说明设置 Eclipse IDE 以使用我的 Arduino UNO 板:http://www.chipkin.com/articles/using-eclipse-with-arduino-duemilanove

I followed the instructions to setup Eclipse IDE to work with my Arduino UNO board from here: http://www.chipkin.com/articles/using-eclipse-with-arduino-duemilanove

我成功编译了核心库,除了tone.h 文件的警告.当我尝试编译一个使用 arduino 库的闪烁项目时,它抛出链接错误.我花了最后一天试图找出问题,但没有成功.请帮我解决这个问题.

I successfully compiled the core library except a warning for the tone.h file. When I try to compile a blinky project which uses the arduino library, it is throwing me linking errors. I have spend my last day trying to figure out the problem but with no success. Please help me to resolve this issue.

现在我按照这里的说明成功创建了一个模板"项目:

Now I successfully created a 'Template' project following instructions from here:

http://www.chipkin.com/articles/using-eclipse-with-arduino-duemilanove

但问题是当我尝试构建一个复制模板"项目的项目时,编译器将开始抛出链接错误.如果我尝试从模板"项目编译相同的代码,它会编译得很好.请帮我解决这个问题.

But the problem is when I try to build a project which is a copy 'Template' project, compiler will start throwing linking errors. If I try to compile the same code from 'Template' project, it will compile fine. Please help me to fix this.

推荐答案

您是否检查过参考文献对于您的工作区是否正确?我在使用 Arduino 的 Eclipse 模板时遇到了一些问题,因为编译器由于各种路径问题而抛出了很多错误/警告.

Have you checked the references are correct for your workspace? I had some issues using Eclipse templates for Arduino as the compiler threw up a lot of errors/warning due to various path issues.

我刚刚得到了在我的 Uno 上工作的闪烁示例和 arduino 核心库构建.如果你愿意,我可以压缩和链接吗?可能会说明你哪里出错了.

I've literally just gotten the blink example and arduino core library build working on my Uno. I could zip and link if you want? Might shed some light on where you're going wrong.

这篇关于Eclipse IDE 中的链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆