title: how to get rid of Microchip pic16f877A main redefined error?
body: <p>I am new to microchip family. i had tried out the below program, </p>
  
  <pre><code>#include&lt;pic.h&gt; 
  #include &lt;stdio.h&gt;
  __CONFIG(0x1932);
  void main() 
  { 
  TRISA=0x00;
   PORTA=0x01; 
  PORTA=0x02; 
  PORTA=0x04; 
  PORTA=0x08; 
  PORTA=0x10;
   PORTA=0x20; 
  PORTA=0x40; 
  }    
  </code></pre>
  
  <p>But i get the error:</p>
  
  <blockquote>
    <p>Error   [237] C:\Users\mathishara\Desktop\project_mplab\alternative.c;
    9. function "_main" redefined.</p>
  </blockquote>
  
  <p>What should I do. </p>