这是Eclipse中控制台的输出:
**** Build of configuration Debug for project FatFstest ****
make all
make: *** No rule to make target `main.o', needed by `FatFstest.elf'. Stop.
Run Code Online (Sandbox Code Playgroud)
我正在尝试使用Eclipse的AVR插件构建一个项目来测试FatFs库.我首先导入了FatFs代码,然后创建了main.c文件来实现它.在我第一次尝试构建它之后,我将项目的src文件夹添加到Properties> AVR Compiler> Directories中的目录列表中,我仍然得到构建错误.有帮助吗?
这是我的makefile:
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
-include ../makefile.init
RM := rm -rf
# All of the sources participating in the build are defined here
-include sources.mk
-include subdir.mk
-include src/subdir.mk
-include objects.mk
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq …Run Code Online (Sandbox Code Playgroud) 我已经开始在学校广泛使用c ++,现在我的程序已经达到了超过1个文件(即标题,驱动程序,实现文件)的程度.我对软件开发了解不多,或者通过查看Apple的指南来了解如何设置构建过程.有人可以告诉我如何使用头文件和xcode中的两个c ++文件编译一个简单的c ++项目吗?我首先需要制作一个makefile吗?
我意识到这对于Java程序员来说是一个备受争议的热议话题,但我相信我的问题有点独特.我的算法REQUIRES按引用传递.我正在进行一般树(即n-children)的顺时针/逆时针预先遍历遍历以分配虚拟(x,y)坐标.这只是意味着当我访问它时,我会计算(并标记)我访问的树的节点.
/**
* Generates a "pre-ordered" list of the nodes contained in this object's subtree
* Note: This is counterclockwise pre-order traversal
*
* @param clockwise set to true for clockwise traversal and false for counterclockwise traversal
*
* @return Iterator<Tree> list iterator
*/
public Iterator<Tree> PreOrder(boolean clockwise)
{
LinkedList<Tree> list = new LinkedList<Tree>();
if(!clockwise)
PreOCC(this, list);
else
PreO(this,list);
count = 0;
return list.iterator();
}
private void PreOCC(Tree rt, LinkedList<Tree> list)
{
list.add(rt);
rt.setVirtual_y(count);
count++;
Iterator<Tree> ci = …Run Code Online (Sandbox Code Playgroud) c++ ×2
arduino ×1
avr ×1
c ×1
compilation ×1
eclipse ×1
graph-theory ×1
java ×1
makefile ×1
xcode ×1