# Compiler error on Interrupts

**URL:** <https://forums.freertos.org/t/compiler-error-on-interrupts/802>\
**Category:** Kernel\
**Created:** [January 3, 2013, 9:47pm UTC](https://forums.freertos.org/t/compiler-error-on-interrupts/802 "2013-01-03T21:47:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 3, 2013, 9:47pm UTC](https://forums.freertos.org/t/compiler-error-on-interrupts/802/1 "2013-01-03T21:47:11Z")

</div>

**[groufosse](https://sourceforge.net/u/groufosse/)** wrote on [Thursday, January 03, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/258ae821/#8342):

For some reason, the IAR compiler now throws an error on an interrupt function that previously compiled in code before I integrated FreeRTOS in.

extern “C” void TIMER0\_IRQHandler(void)

is causing IAR to have these 2 error messages:

Error: expected an identifier C:\Users\grr\Documents\IAR Embedded Workbench\Code\_Base\RTOS\Timer\_COM.c 18  
Error: explicit type is missing (“int” assumed) C:\Users\grr\Documents\IAR Embedded Workbench\Code\_Base\RTOS\Timer\_COM.c 21

I’m using the same handler verbatim in another project file and it compiles OK there.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 3, 2013, 10:00pm UTC](https://forums.freertos.org/t/compiler-error-on-interrupts/802/2 "2013-01-03T22:00:02Z")

</div>

**[groufosse](https://sourceforge.net/u/groufosse/)** wrote on [Thursday, January 03, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/258ae821/#f58e):

Ok, I’ve figured it out…thanks!
