title: PIC16f877a Build failed
body: <p>I was able to compile the program below on my desktop or another PC successfully.  However, I cannot compile this code on my laptop. I tried to re-install the software with the same version as I have installed on the desktop. It gives me the same error but will compile with the code marked "Normal LED Program" below. How can I fix this?</p>
  
  <p><strong>Program that fails to compile</strong>:  </p>
  
  <pre><code>#include&lt;pic.h&gt;
  __CONFIG(0x3F3A);
  
  main()
  {
      TRISB=0;
      PORTB=0;
  
      PSA=0;
      PS2=0;
      PS1=0;
      PS0=0;
      TMR0=6;
      T0CS=0;
      T0SE=0;
      TMR0IE=1;
  
      int count=0;
  
      while(1)
      {
          if(TMR0IF==1)
          {
              TMR0IF=0;
  
              count=count++;
              if(count==2000)
              {
                  RB0=~RB0;
                  count=0;
              }
          }
      }       
  }
  </code></pre>
  
  <p>Warning Error:</p>
  
  <p><img src="https://i.stack.imgur.com/kEVQg.jpg" alt="enter image description here"></p>
  
  <p><strong>Normal LED Program (compiles successfully)</strong>:</p>
  
  <pre><code>#include &lt;pic.h&gt;
  __CONFIG(0x3F38);
  main()
  {
      TRISB=0;
      PORTB=0;
      while(1)
      {
          PORTB=0x01;
      }
  }
  </code></pre>