可以在Ar​​duino的IDE用来开发普通的旧的C程序? [英] Can the Arduino IDE be used to develop plain old C programs?

查看:200
本文介绍了可以在Ar​​duino的IDE用来开发普通的旧的C程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的Arduino草图跨越多个文件。有在H文件中的函数的签名,并在C文件中的定义。

I have a simple Arduino sketch that spans several files. There is a function signature in an h file, and the definition in the C file.

如果我试图编译(验证)的素描,我得到未定义的引用错误在C文件中定义的功能。从的* .c更改文件名中的* .cpp解决问题,但我不想定义文件作为C ++文件。是否有可能编译的Arduino普通的旧的C文件?

If I attempt to compile ("Verify") the sketch, I get "undefined reference" errors to the function defined in a C file. Changing the file name from *.c to *.cpp resolves the issue, but I don't want to define the file as a C++ file. Is it possible to compile plain old C files in Arduino?

先谢谢了。

推荐答案

Arduino的IDE是非常有限的,我的建议是:避免它。你有一些替代品,你可以在这里找到:<一href=\"http://arduino.cc/playground/Main/DevelopmentTools\">http://arduino.cc/playground/Main/DevelopmentTools

The Arduino IDE is very limited, my advice: avoid it. You have some alternatives you can find here: http://arduino.cc/playground/Main/DevelopmentTools


  • 使用Minibloq图形化编程环境制定的Arduino。

  • 的Arduino的CMake构建系统

  • 伊诺命令行工具包的Arduino

  • 使用制定的Arduino AVR-阿达

  • 使用Eclipse制定的Arduino

  • 使用Bitlash制定的Arduino

  • 从命令行运行的Arduino

  • 构建使用cmake

  • 构建使用使用SCons

  • 构建使用build_arduino.py

  • 获得一个Chumby的交谈的Arduino

  • 在XO笔记本(又名$ 100的笔记本电脑)运行的Arduino

  • Arduino的夏普Netwalker

  • 的Arduino在OpenSolaris

  • 在$ C $个cblocks使用Arduino的库

  • 使用KDevelop的制定的Arduino

  • 在Arduino的IDE中使用汇编语言源文件:在Arduino的大会

这篇关于可以在Ar​​duino的IDE用来开发普通的旧的C程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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