wbbxajh 发表于 2010-4-24 21:13:07

调试错误this declaration has no storage class or type specifier

Error: this declaration has no storage class or type specifier   

调试时候出现了这个错误,错误出现的地方是:#pragma vector=PORT1_VECTOR
                                          _interrupt void Port1(void)

请大家指教哈

huchunlei 发表于 2010-4-28 20:17:53

应该这样写:

#pragma vector=PORT1_VECTOR
__interrupt void Port1(void)

看出来了吗?interrupt前面的下划线是2个

wbbxajh 发表于 2010-4-29 11:11:25

呵呵 谢谢楼上的我已经解决了确实是这样的写的时候写漏了一个横线

xxguo 发表于 2012-8-25 09:43:00

这样也可以~~~不过实际调试的时候在编辑框内一个横线和两个横线区别还是蛮明显的,就是查看文档的时候看不出来~~~需要注意下
页: [1]
查看完整版本: 调试错误this declaration has no storage class or type specifier