title: undeclared variable. [ issue with headers ]
body: <p>I have headers in my microcontroller program</p>
  
  <pre><code> #ifndef __IRQ_HANDLER__
   #define __IRQ_HANDLER__
  #ifdef __cplusplus  
  volatile tU32 ticks = 0; // &lt;- with that variable i have problem
  
  extern "C" {
  #endif
  void interrupt2(void);
  #ifdef __cplusplus
  }
  #endif
  
  
  #endif //__IRQ_HANDLER__
  </code></pre>
  
  <p>Then file.c</p>
  
  <pre><code>#include &lt;lpc2xxx.h&gt;
  #include "interrupt.h"
  
  void interrupt2(void) {
      ticks++;
      T1IR = 0xff;
      VICVectAddr = 0x00;
  }
  </code></pre>
  
  <p>Every time when i'm trying to use variable ticks. I got an error : 
  'ticks' undeclared ( first use in this function ).</p>
  
  <p>Have you any clue what might be wrong ?</p>
  
  <p>Greetings ! </p>