【问题标题】:Can the Arduino IDE be used to develop plain old C programs?Arduino IDE 可以用来开发普通的旧 C 程序吗?
【发布时间】:2011-10-18 06:46:52
【问题描述】:

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

如果我尝试编译(“验证”)草图,我会收到 C 文件中定义的函数的“未定义引用”错误。将文件名从 *.c 更改为 *.cpp 可以解决问题,但我不想将文件定义为 C++ 文件。是否可以在 Arduino 中编译普通的旧 C 文件?

提前致谢。

【问题讨论】:

标签: c arduino


【解决方案1】:

Arduino IDE 非常有限,我的建议是:避免使用。您可以在这里找到一些替代方案:http://arduino.cc/playground/Main/DevelopmentTools


  • 使用 Minibloq 图形编程环境为 Arduino 开发。
  • Arduino CMake 构建系统
  • 适用于 Arduino 的 Ino 命令行工具包
  • 使用 AVR-Ada 为 Arduino 开发
  • 使用 Eclipse 为 Arduino 开发
  • 使用 Bitlash 为 Arduino 开发
  • 从命令行运行 Arduino
  • 使用 Cmake 构建
  • 使用 Scons 构建
  • 使用 build_arduino.py 构建
  • 让 Chumby 与 Arduino 交谈
  • 在 XO 笔记本电脑(又名 100 美元的笔记本电脑)上运行 Arduino
  • Sharp Netwalker 中的 Arduino
  • OpenSolaris 上的 Arduino
  • 在 CodeBlocks 中使用 Arduino 库
  • 使用 Kdevelop 为 Arduino 开发
  • 在 Arduino IDE 中使用汇编语言源文件:Arduino 中的汇编

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多