title: "Linking Error: Duplicate public_main in module" while building
body: <p>I have created a a simple file under one work area, build it and executed successfully. And again created another file under same work area. I am getting linking error like:</p>
  
  <p><code>"====Linking===== Error: Duplicate public_main in module...."</code> while building and I am getting the same error when I try to execute first file also.</p>
  
  <p>Please see the below code and suggest.</p>
  
  <p>File1: n_numbers.c</p>
  
  <pre><code>#define N 10
  
  main()  
  {
  
  int count;
  float sum, number;
  
  count=0;
  sum=0;
  
  printf("Enter 10 numbers to calculate the Sum");
  
  while(N&lt;10)
  {
  scanf("%f", &amp;number);
  
  sum=sum+number;
  
  count=count+1;
  }
  
  printf("sum=5.2%", sum);
  }
  </code></pre>
  
  <p>File2: two.numbers.c</p>
  
  <pre><code>main()
  {
  
  int a,b,c;
  
  printf("Enter Two numbers for a and b\n");
  scanf("%d %d",&amp;a, &amp;b);
  
  c=a+b;
  
  printf("c=%d", c);
  
  }
  </code></pre>