编译错误error: invalid storage class

今天编译bootrom遇到的问题,google了一下,原来如此,只怪自己马虎了。

 

 

少了一个“}”。下面就是make后出现的错误:
xxxxx.c:100: error: invalid storage class for function 'xxxxxxx'

Code\dmx_motor.h(28): error C42: 'Init_Motor': not in formal parameter list Code\dmx_motor.h(39): error C42: 'Set_Left_Motor_Duty': not in formal parameter list Code\dmx_motor.h(50): error C42: 'Set_Right_Motor_Duty': not in formal parameter list Code\dmx_motor.h(61): error C42: 'Get_Left_Motor_Speed': not in formal parameter list Code\dmx_motor.h(72): error C42: 'Get_Right_Motor_Speed': not in formal parameter list Code\dmx_angle.h(5): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(5): error C33: 'param_kp': invalid storage class Code\dmx_angle.h(7): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(7): error C33: 'param_ki': invalid storage class Code\dmx_angle.h(10): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(14): error C33: 'gyro_param_t': invalid storage class Code\dmx_angle.h(17): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(24): error C33: 'icm_param_t': invalid storage class Code\dmx_angle.h(27): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(32): error C33: 'quater_param_t': invalid storage class Code\dmx_angle.h(35): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(39): error C33: 'euler_param_t': invalid storage class Code\dmx_angle.h(42): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(42): error C33: 'gyro_param_t': invalid storage class Code\dmx_angle.h(42): error C25: syntax error near 'gyro_offset' Code\dmx_angle.h(42): error C33: 'gyro_offset': invalid storage class Code\dmx_angle.h(43): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(43): error C33: 'euler_param_t': invalid storage class Code\dmx_angle.h(43): error C25: syntax error near 'euler_angle' Code\dmx_angle.h(43): error C33: 'euler_angle': invalid storage class Code\dmx_angle.h(54): error C42: 'Init_Gyro_Offset': not in formal parameter list Code\dmx_angle.h(65): error C42: 'Get_Angles_ICM': not in formal parameter list Code\dmx_angle.h(67): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(67): error C33: 'Get_Values_ICM': invalid storage class Code\car.h(25): error C29: formal/parameter has illegal storage class Code\car.h(25): error C33: 'adc_out': invalid storage class Code\car.h(27): error C29: formal/parameter has illegal storage class Code\car.h(27): error C33: 'adc_black1_now': invalid storage class Code\car.h(28): error C29: formal/parameter has illegal storage class Code\car.h(28): error C33: 'adc_black2_now': invalid storage class Code\car.h(29): error C29: formal/parameter has illegal storage class Code\car.h(29): error C33: 'adc_black3_now': invalid storage class Code\car.h(30): error C29: formal/parameter has illegal storage class Code\car.h(30): error C33: 'adc_black4_now': invalid storage class Code\car.h(31): error C29: formal/parameter has illegal storage class Code\car.h(31): error C33: 'adc_black5_now': invalid storage class Code\car.h(32): error C29: formal/parameter has illegal storage class Code\car.h(32): error C33: 'adc_black6_now': invalid storage class Code\car.h(33): error C29: formal/parameter has illegal storage class Code\car.h(33): error C33: 'adc_black7_now': invalid storage class Code\car.h(34): error C29: formal/parameter has illegal storage class Code\car.h(34): error C33: 'adc_black8_now': invalid storage class Code\car.h(36): error C29: formal/parameter has illegal storage class Code\car.h(36): error C33: 'ADC_Del_MaxMin_Average_Filter': invalid storage class Code\car.h(37): error C29: formal/parameter has illegal storage class Code\car.h(37): error C33: 'ADC_Limit': invalid storage class Code\car.h(38): error C29: formal/parameter has illegal storage class Code\car.h(38): error C33: 'ADC_black': invalid storage class Code\car.h(41): error C29: formal/parameter has illegal storage class Code\car.h(41): error C33: 'jiaoudulb': invalid storage class Code\dmx_control.c(18): error C42: 'PID_position': not in formal parameter list Code\dmx_control.c(18): error C25: syntax error near '{' Code\dmx_control.c(23): error C42: 'ierror': not in formal parameter list Code\dmx_control.c(24): error C25: syntax error near '}' Code\dmx_control.c(25): error C25: syntax error near '->' Code\dmx_control.c(25): error C25: syntax error near '>' Code\dmx_control.c(25): error C25: syntax error near '->' Code\dmx_control.c(25): error C25: syntax error near ')' Code\dmx_control.c(27): error C25: syntax error near '->' Code\dmx_control.c(27): error C67: 'obj': undefined identifier Code\dmx_control.c(28): error C25: syntax error near '}' Code\dmx_control.c(29): error C67: 'obj': undefined identifier Code\dmx_control.c(29): error C67: 'ierror': undefined identifier Code\dmx_control.c(29): error C67: 'obj': undefined identifier Code\dmx_control.c(29): error C67: 'obj': undefined identifier Code\dmx_control.c(29): error C67: 'ierror': undefined identifier Code\dmx_control.c(29): error C67: 'obj': undefined identifier Code\dmx_control.c(30): error C25: syntax error near '->' Code\dmx_control.c(30): error C7: compilation aborted compiling pwm.c... Code\dmx_motor.h(28): error C42: 'Init_Motor': not in formal parameter list Code\dmx_motor.h(39): error C42: 'Set_Left_Motor_Duty': not in formal parameter list Code\dmx_motor.h(50): error C42: 'Set_Right_Motor_Duty': not in formal parameter list Code\dmx_motor.h(61): error C42: 'Get_Left_Motor_Speed': not in formal parameter list Code\dmx_motor.h(72): error C42: 'Get_Right_Motor_Speed': not in formal parameter list Code\dmx_angle.h(5): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(5): error C33: 'param_kp': invalid storage class Code\dmx_angle.h(7): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(7): error C33: 'param_ki': invalid storage class Code\dmx_angle.h(10): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(14): error C33: 'gyro_param_t': invalid storage class Code\dmx_angle.h(17): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(24): error C33: 'icm_param_t': invalid storage class Code\dmx_angle.h(27): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(32): error C33: 'quater_param_t': invalid storage class Code\dmx_angle.h(35): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(39): error C33: 'euler_param_t': invalid storage class Code\dmx_angle.h(42): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(42): error C33: 'gyro_param_t': invalid storage class Code\dmx_angle.h(42): error C25: syntax error near 'gyro_offset' Code\dmx_angle.h(42): error C33: 'gyro_offset': invalid storage class Code\dmx_angle.h(43): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(43): error C33: 'euler_param_t': invalid storage class Code\dmx_angle.h(43): error C25: syntax error near 'euler_angle' Code\dmx_angle.h(43): error C33: 'euler_angle': invalid storage class Code\dmx_angle.h(54): error C42: 'Init_Gyro_Offset': not in formal parameter list Code\dmx_angle.h(65): error C42: 'Get_Angles_ICM': not in formal parameter list Code\dmx_angle.h(67): error C29: formal/parameter has illegal storage class Code\dmx_angle.h(67): error C33: 'Get_Values_ICM': invalid storage class Code\car.h(25): error C29: formal/parameter has illegal storage class Code\car.h(25): error C33: 'adc_out': invalid storage class Code\car.h(27): error C29: formal/parameter has illegal storage class Code\car.h(27): error C33: 'adc_black1_now': invalid storage class Code\car.h(28): error C29: formal/parameter has illegal storage class Code\car.h(28): error C33: 'adc_black2_now': invalid storage class Code\car.h(29): error C29: formal/parameter has illegal storage class Code\car.h(29): error C33: 'adc_black3_now': invalid storage class Code\car.h(30): error C29: formal/parameter has illegal storage class Code\car.h(30): error C33: 'adc_black4_now': invalid storage class Code\car.h(31): error C29: formal/parameter has illegal storage class Code\car.h(31): error C33: 'adc_black5_now': invalid storage class Code\car.h(32): error C29: formal/parameter has illegal storage class Code\car.h(32): error C33: 'adc_black6_now': invalid storage class Code\car.h(33): error C29: formal/parameter has illegal storage class Code\car.h(33): error C33: 'adc_black7_now': invalid storage class Code\car.h(34): error C29: formal/parameter has illegal storage class Code\car.h(34): error C33: 'adc_black8_now': invalid storage class Code\car.h(36): error C29: formal/parameter has illegal storage class Code\car.h(36): error C33: 'ADC_Del_MaxMin_Average_Filter': invalid storage class Code\car.h(37): error C29: formal/parameter has illegal storage class Code\car.h(37): error C33: 'ADC_Limit': invalid storage class Code\car.h(38): error C29: formal/parameter has illegal storage class Code\car.h(38): error C33: 'ADC_black': invalid storage class Code\car.h(41): error C29: formal/parameter has illegal storage class Code\car.h(41): error C33: 'jiaoudulb': invalid storage class D:\C251\Inc\stdio.h(22): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(22): error C33: 'size_t': invalid storage class D:\C251\Inc\stdio.h(29): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(29): error C33: '_getkey': invalid storage class D:\C251\Inc\stdio.h(30): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(30): error C33: 'getchar': invalid storage class D:\C251\Inc\stdio.h(31): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(31): error C33: 'ungetchar': invalid storage class D:\C251\Inc\stdio.h(32): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(32): error C33: 'putchar': invalid storage class D:\C251\Inc\stdio.h(33): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(33): error C33: 'printf': invalid storage class D:\C251\Inc\stdio.h(34): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(34): error C33: 'gets': invalid storage class D:\C251\Inc\stdio.h(35): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(35): error C33: 'scanf': invalid storage class D:\C251\Inc\stdio.h(36): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(36): error C33: 'vprintf': invalid storage class D:\C251\Inc\stdio.h(37): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(37): error C33: 'puts': invalid storage class D:\C251\Inc\stdio.h(40): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(40): error C33: 'sprintf': invalid storage class D:\C251\Inc\stdio.h(41): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(41): error C33: 'vsprintf': invalid storage class D:\C251\Inc\stdio.h(42): error C29: formal/parameter has illegal storage class D:\C251\Inc\stdio.h(42): error C33: 'sscanf': invalid storage class D:\C251\Inc\math.h(13): error C29: formal/parameter has illegal storage class D:\C251\Inc\math.h(13): error C33: 'cabs': invalid storage class D:\C251\Inc\math.h(14): error C29: formal/parameter has illegal storage class D:\C251\Inc\math.h(14): error C33: 'abs': invalid storage class D:\C251\Inc\math.h(15): error C29: formal/parameter has illegal storage class D:\C251\Inc\math.h(15): error C33: 'labs': invalid storage class D:\C251\Inc\math.h(16): error C29: formal/parameter has illegal storage class D:\C251\Inc\math.h(16): error C33: 'fabs': invalid storage class D:\C251\Inc\math.h(17): error C29: formal/parameter has illegal storage class D:\C251\Inc\math.h(17): error C33: 'sqrt': invalid storage class D:\C251\Inc\math.h(18): error C29: formal/parameter has illegal storage class D:\C251\Inc\math.h(18): error C33: 'exp': invalid storage class D:\C251\Inc\math.h(19): error C29: formal/parameter has illegal storage class D:\C251\Inc\math.h(19): error C33: 'log': invalid storage class D:\C251\Inc\math.h(20): error C29: formal/parameter has illegal storage class D:\C251\Inc\math.h(20): error C33: 'log10': invalid storage class D:\C251\Inc\math.h(21): error C29: formal/parameter has illegal storage class D:\C251\Inc\math.h(21): error C33: 'sin': invalid storage class D:\C251\Inc\math.h(22): error C29: formal/parameter has illegal storage class D:\C251\Inc\math.h(22): error C33: 'cos': invalid storage class C251 FATAL-ERROR - ACTION: PARSING SOURCE-FILE ERROR: (LINE 22), MORE THAN 400 ERRORS IN SOURCE-FILE C251 TERMINATED.
07-14
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值