title: error LNK2005: _main already defined in hold.obj
body: <p>Hi  Please i have browsed all same error that i got but I didnt get solving for my problem, so <code>I am using MS VC++ 2010</code> and i have two files <code>a.c and b.c,</code> each one works no error alone and each one has a simple code and clear. But when i use them to gather shows this error <code>**error LNK2005: _main already defined in  a.c **</code> this same error shows on Code block IED. I think that refer to using main function twice. Now how can i use one main function for both file</p>
  
  <p>Code file a.c</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  
  main()
  {
      int a =9;
      if(a==7)
      {
          puts("This is number seven ");
      }
      else
      {
          puts("This isn't number seven ");
      }
  
      getch();
  }
  </code></pre>
  
  <p>Code file b.c</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  
  main()
  {
      int x=10;
  
      printf("%d", x);
      getch();
  }    
  </code></pre>