小编Nat*_*han的帖子

如何编程Arduino与标准C不同?

我有编程嵌入式系统的背景(TI MSP430,Atmel ATxmega).如何编程Arduino不同于那些?我可以用什么知识来编写Arduino?

c c++ arduino

25
推荐指数
2
解决办法
3万
查看次数

make:***没有规则来制作目标`main.o'

这是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)

eclipse avr makefile

6
推荐指数
1
解决办法
3万
查看次数

学习在xcode中编译

我已经开始在学校广泛使用c ++,现在我的程序已经达到了超过1个文件(即标题,驱动程序,实现文件)的程度.我对软件开发了解不多,或者通过查看Apple的指南来了解如何设置构建过程.有人可以告诉我如何使用头文件和xcode中的两个c ++文件编译一个简单的c ++项目吗?我首先需要制作一个makefile吗?

c++ xcode compilation

3
推荐指数
1
解决办法
2万
查看次数

Java递归:通过引用传递

我意识到这对于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)

java graph-theory pass-by-reference pass-by-value

3
推荐指数
1
解决办法
3044
查看次数