完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有Protos,H作为我的项目的一部分。前几行是:/**文件:Prims.H*作者:弗兰西斯**创建于2017年5月19日,下午3:47 *//下一行是第11行:无符号CHAR Read Orthee(unChar Car);当我编译另一个模块,其中包含“Prims.h”时,我得到这个失败警告:/IDAT/项目/ alpHaaRealths/Alpha ReadX/PROTHS.H:11:警告:(374)缺少基本类型;int假设/ IDATA/项目/阿尔法中继器/α中继器。X/PROSTS。H:11:错误:(314)“;”预期但没有前面的行缺少“;”。那么,我错过了什么?
以上来自于百度翻译 以下为原文 I have protos.h as part of my project. The first few lines are: /* * File: protos.h * Author: francis * * Created on May 19, 2017, 3:47 PM */ //The next line is line 11: unsigned char read_from_EE(unsigned char); When I compile another module which #includes "protos.h", I get this failure warning: /iDATA/Projects/ALPHA_repeaters/Alpha Repeaters.X/protos.h:11: warning: (374) missing basic type; int assumed /iDATA/Projects/ALPHA_repeaters/Alpha Repeaters.X/protos.h:11: error: (314) ";" expected But there is no previous line which is missing a ";". So what am I missing? |
|
相关推荐
7个回答
|
|
在包含PROTHS.H之后,是否包括其他头文件?如果是这样的话,那就告诉我们那个文件中的内容。如果不是,那么当你得到那个错误时,告诉我们正在编译的文件如何。DaveFootnote,这不是MPLAB错误,因为它找到了头文件。这是编译器错误。
以上来自于百度翻译 以下为原文 Are you including some other header immediately before you include protos.h?
Regards, Dave Footnote: That is not an MPLAB error, since it found the header file. It's a compiler error. |
|
|
|
这是字面意思,你打算不记“S”吗?
以上来自于百度翻译 以下为原文 Is this literal, did you intend #include "protos.h note no 's' |
|
|
|
|
|
|
|
这当然是为什么我们应该使用代码标签,伊恩在这里描述了HTTP://www. McCHIP.COM/FUMMS/FUNDSPE/77101。
以上来自于百度翻译 以下为原文 Which is of course why we should use code tags as Ian describes here http://www.microchip.com/forums/FindPost/777101 |
|
|
|
它是包含的,但是我在叙述中写了“包含”,所以它在我说话的时候读。但是谢谢你这么细心。
以上来自于百度翻译 以下为原文 It is #include, but I wrote "#includes "in the narrative so it read as I speak it. But thanks for being so observant. |
|
|
|
排序!它是一个随机字符,在前一个头文件的末尾,包含了。谢谢你指引我走向正确的方向。
以上来自于百度翻译 以下为原文 Sorted! It was a random character at the end of the previous header file in the list of #includes. Thanks for pointing me in the right direction. |
|
|
|
这正是问题所在!一个奇怪的不可打印的字符,在前一个包含文件的结尾。谢谢大家。
以上来自于百度翻译 以下为原文 That was EXACTLY the problem! A strange unprintable character at the end of the previous #include file. Thanks to you all. |
|
|
|
只有小组成员才能发言,加入小组>>
4848 浏览 9 评论
1846 浏览 8 评论
1767 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
2974 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2076 浏览 5 评论
472浏览 1评论
320浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
377浏览 0评论
270浏览 0评论
LAN9252使用SQI通信,进行数字复位后读BYTE_TEST异常
1826浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-5-17 23:49 , Processed in 1.128711 second(s), Total 88, Slave 72 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号