极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 11935|回复: 3

在Eclipse 中编译arduino时,serial怎么办?

[复制链接]
发表于 2015-6-10 15:14:36 | 显示全部楼层 |阅读模式
在Eclipse 中编译arduino时,出现问题如下:

Description        Resource        Path        Location        Type
Symbol 'Serial' could not be resolved         aa.cpp        /aa        line 49        Semantic Error


请问如何包含此头文件,Serial包含在哪个文件中?
回复

使用道具 举报

发表于 2015-6-10 16:19:41 | 显示全部楼层
我自己沒嘗試過用 eclipse compile arduino 的程式, 但官網有資料的, 可以看看 (應該是要裝 elipse 的 plug-in 了).

http://playground.arduino.cc/Code/Eclipse
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-6-10 22:29:33 | 显示全部楼层
问题不在此。我的意思是,一般情况下,是能够编译通过的。当出现这个类的时候,出错了。
回复 支持 反对

使用道具 举报

发表于 2015-6-10 23:57:25 | 显示全部楼层
直接使用print函数
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-16 20:04 , Processed in 0.061114 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表