title: GCC dies trying to compile 64bit code on OSX 10.6
body: <p>I have a brand-new off-the-cd OSX 10.6 installation.
  I'd now like to compile the following trivial C program as a 64bit binary:</p>
  
  <pre><code> #include &lt;stdio.h&gt;
  
   int main() 
   {
      printf("hello world");
      return 0;
   }
  </code></pre>
  
  <p>I invoke gcc as follows:</p>
  
  <pre><code>gcc -m64 hello.c
  </code></pre>
  
  <p>However, this fails with the following error:</p>
  
  <p>Undefined symbols:</p>
  
  <pre><code>  "___gxx_personality_v0", referenced from:
    _main in ccUAOnse.o
    CIE in ccUAOnse.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
  </code></pre>
  
  <p>What's going on here? Why is gcc dying?
  Compiling without the -m64 flag works fine.</p>