title: Symbol(s) not found for architecture x86_64 while compiling a C file
body: <p>I tried to run a c file using Mac Terminal. So I put the following command in the Terminal.</p>
  
  <p><code>gcc main.c</code></p>
  
  <p>And the following message was shown.</p>
  
  <pre><code>Undefined symbols for architecture x86_64:
    "_main", referenced from:
       implicit entry/start for main executable
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>Prior to this, I also tried to build a C project in Eclipse, but this also showed an error. It says there is one error which is <code>symbol(s) not found for architecture x86_64</code>. </p>