野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 19932|回复: 3

初用IAR帮忙看一下,为啥有这么多错误

[复制链接]
发表于 2013-10-4 20:42:22 | 显示全部楼层 |阅读模式
Building configuration: GPIO - Debug
Updating build tree...
LED.C  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error while running C/C++ Compiler
alloc.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error while running C/C++ Compiler
arm_cm4.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error while running C/C++ Compiler
assert.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error while running C/C++ Compiler
delay.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe020]: identifier "bus_clk_khz" is undefined E:\项目\Freescale K60\src\drivers\delay\delay.c 48
Error while running C/C++ Compiler
gpio.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error while running C/C++ Compiler
io.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe167]: argument of type "UART_MemMapPtr" is incompatible with parameter of type "UARTn" E:\项目\Freescale K60\src\common\io.c 15
Error[Pe167]: argument of type "UART_MemMapPtr" is incompatible with parameter of type "UARTn" E:\项目\Freescale K60\src\common\io.c 21
Warning[Pe223]: function "uart_getchar_present" declared implicitly E:\项目\Freescale K60\src\common\io.c 27
Error while running C/C++ Compiler
isr.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error while running C/C++ Compiler
lptmr.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error while running C/C++ Compiler
main.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error while running C/C++ Compiler
mcg.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
.
.
.省略
.
.
.
Error[Pe020]: identifier "MAX_FLASH_CLK" is undefined E:\项目\Freescale K60\src\drivers\mcg\mcg.c 128
Warning[Pe223]: function "set_sys_dividers" declared implicitly E:\项目\Freescale K60\src\drivers\mcg\mcg.c 178
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.c 204
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.c 204
Warning[Pe012]: parsing restarts here after previous syntax error E:\项目\Freescale K60\src\drivers\mcg\mcg.c 231
Error[Pe169]: expected a declaration E:\项目\Freescale K60\src\drivers\mcg\mcg.c 233
Error[Pe169]: expected a declaration E:\项目\Freescale K60\src\drivers\mcg\mcg.c 234
Warning[Pe012]: parsing restarts here after previous syntax error E:\项目\Freescale K60\src\drivers\mcg\mcg.c 237
Error while running C/C++ Compiler
printf.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error while running C/C++ Compiler
queue.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
.
.
.
.
.
.
sysinit.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe140]: too many arguments in function call E:\项目\Freescale K60\src\cpu\sysinit.c 38
Error[Pe167]: argument of type "UART_MemMapPtr" is incompatible with parameter of type "UARTn" E:\项目\Freescale K60\src\cpu\sysinit.c 114
Error[Pe140]: too many arguments in function call E:\项目\Freescale K60\src\cpu\sysinit.c 114
Error[Pe167]: argument of type "UART_MemMapPtr" is incompatible with parameter of type "UARTn" E:\项目\Freescale K60\src\cpu\sysinit.c 116
Error[Pe140]: too many arguments in function call E:\项目\Freescale K60\src\cpu\sysinit.c 116
Error while running C/C++ Compiler
uart.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe020]: identifier "UART0_RX" is undefined E:\项目\Freescale K60\src\drivers\uart\uart.c 42
Error[Pe020]: identifier "PTA1" is undefined E:\项目\Freescale K60\src\drivers\uart\uart.c 42
Error[Pe020]: identifier "PTA15" is undefined E:\项目\Freescale K60\src\drivers\uart\uart.c 44
Error[Pe020]: identifier "PTB16" is undefined E:\项目\Freescale K60\src\drivers\uart\uart.c 46
.
.
.
.
.
.
.
.
.
.
.
Error[Pe020]: identifier "UART5_TX" is undefined E:\项目\Freescale K60\src\drivers\uart\uart.c 140
Error[Pe020]: identifier "PTD9" is undefined E:\项目\Freescale K60\src\drivers\uart\uart.c 140
Error[Pe020]: identifier "PTE8" is undefined E:\项目\Freescale K60\src\drivers\uart\uart.c 142
Error[Pe020]: identifier "core_clk_khz" is undefined E:\项目\Freescale K60\src\drivers\uart\uart.c 163
Error[Pe020]: identifier "bus_clk_khz" is undefined E:\项目\Freescale K60\src\drivers\uart\uart.c 165
Error while running C/C++ Compiler
uif.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error while running C/C++ Compiler
vectors.c  
Fatal Error[Pe1696]: cannot open source file "isr.h" E:\项目\Freescale K60\src\cpu\vectors.c 8
            searched: "E:\项目\Freescale K60\src\cpu\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\common\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\cpu\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\cpu\headers\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\platforms\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\adc\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\AT24C02\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\exti\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\delay\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\FTM\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\gpio\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\i2c\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\LED\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\lptmr\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\mcg\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\PIT\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\pmc\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\rtc\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\uart\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\drivers\wdog\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\projects\fire_gpio_demo\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\LIB\CMSIS\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\src\LIB\FatFs\"
            searched: "E:\项目\Freescale K60\build\GPIO\..\..\build\"
            searched: "D:\IAR\arm\inc\"
            searched: "D:\IAR\arm\inc\c\"
Error while running C/C++ Compiler
wdog.c  
Error[Pe077]: this declaration has no storage class or type specifier E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error[Pe065]: expected a ";" E:\项目\Freescale K60\src\drivers\mcg\mcg.h 81
Error while running C/C++ Compiler

Total number of errors: 99
Total number of warnings: 4
回复

使用道具 举报

 楼主| 发表于 2013-10-4 21:03:16 | 显示全部楼层
ok,自己已解决
回复 支持 反对

使用道具 举报

发表于 2013-10-5 08:51:08 | 显示全部楼层
没添加文件路径吧~
回复 支持 反对

使用道具 举报

发表于 2014-7-1 16:30:21 | 显示全部楼层
flyleaf 发表于 2013-10-5 08:51
没添加文件路径吧~

请问如何添加
回复 支持 反对

使用道具 举报

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

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-11-24 17:25 , Processed in 0.060350 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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