第一范文网 - 专业文章范例文档资料分享平台

IAR编译问题

来源:用户分享 时间:2025/6/5 20:59:53 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

Error[Pe020]: identifier \is undefined C:\\Documents and Settings\\Administrator\\桌面\\ECG1200G-Printer-stm32\%user\\main.c 63

问题:红色部分没有定义,黄色部分是路径,63是行数。 解决:先定义ccc后使用。

Fatal Error[Lc002]: could not open file \and Settings\\Administrator\\桌面\\ECG1200G-Printer-stm32\\..\\stm32f10x_flash.icf\ 问题:找不到黄色路径中的文件。 解决:查找下图中路径设置是否正确。

Warning[Pa084]: pointless integer comparison, the result is always false C:\\Documents and Settings\\Administrator\\桌面\\ECG1200G-Printer-stm32\%user\\main.c 219

问题:警告条件判断结果一直是假。比如:unsigned char i = 0;if(i > 0xFF){}

Error[Pe513]: a value of type \*\cannot be assigned to an entity of type \*\C:\\Documents and Settings\\Administrator\\桌面\\ECG1200G-Printer-stm32\%user\\main.c 219 问题:两个类型不一样,不能直接赋值。

解决:

Warning[Pe223]: function \declared implicitly C:\\Documents and Settings\\Administrator\\桌面\\ECG1200G-Printer-stm32\%user\\main.c 216 问题:红色部分没有声明或在其它地方声明过,但是main.c没有引用。 解决:如果此函数在其它文件声明过,那么在使用前声明下extern void spi_config(void);红色字体要与函数声明时保持一致,或者包含声明函数的头文件,#include \。

Warning[Pa093]: implicit conversion from floating point to integer C:\\Documents and Settings\\Administrator\\桌面\\ECG1200G-Printer-stm32\%user\\main.c 220 问题:float类型赋值给int类型。

Warning[Pe047]: incompatible redefinition of macro \C:\\Documents and Settings\\Administrator\\桌面\\ECG1200G-Printer-stm32\%user\\main.h 29 问题:相同的宏定义并且定义不同。

Error[Pe029]: expected an expression C:\\Documents and Settings\\Administrator\\桌面\\ECG1200G-Printer-stm32\%user\\main.c 207 问题:有格式问题,比如

一个括号。

Error[Pe018]: expected a \C:\\Documents \\ECG1200G-Printer-stm32\%user\\main.c 207

Error[Pe067]: expected a \C:\\Documents \\ECG1200G-Printer-stm32\%user\\main.c 271 问题:缺少成对的括号。如

多了

and and

Settings\\Administrator\\桌面Settings\\Administrator\\桌面

问题: 在main.h中定义了一个变量aaaa,此时

由main.c、init.c、printer.c、stm32f10x_it.c中都包含此头文件时,就会出现此重复定义问题。 解决:

声明此变量是main.c文件中的变量,其他*.c文件引用时都是外部变量。

搜索更多关于: IAR编译问题 的文档
IAR编译问题.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c1vdfg1y6fz75cln2zbar_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top