title: Cannot compile basic tutorial in C
body: <p>I am just beginning to try to learn C and have been trying to do tutorials but they won't compile. The errors seem to suggest it is an issue with me using a 64 bit OS (lion), but I can't see how that could be the case with such a simple program.</p>
  
  <p>The code: (copied directly from a 'thenewboston' tutorial)</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
      printf("Hello World");
      getch();
  }
  </code></pre>
  
  <p>I then entered this in terminal:</p>
  
  <pre><code>gcc tnb_1.c
  </code></pre>
  
  <p>And the error I got was:</p>
  
  <pre><code>Undefined symbols for architecture x86_64:
    "_getch", referenced from:
        _main in cc2nMvOk.o
  ld: symbol(s) not found for architecture x86_64
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>The compiler I am using is the standard one installed with xcode.</p>
  
  <p>I am sorry if this question has an obvious answer, but as I can't get past the first hurdle I am finding it hard to learn anything.</p>
  
  <p>Thank you for your help</p>