title: Embedding Python 3.3
body: <p>I try to embed Python 3.3, as described <a href="http://docs.python.org/3.3/extending/embedding.html" rel="nofollow">here</a>.</p>
  
  <p>I'm on MacOS 10.8 which has Python 2.7 so I downloaded binary distribution of version 3.3 from python.org. From it I got all the headers and "Python" which I renamed to "python33" so it wont collide with installed "Python" lib. I put everything into a folder:</p>
  
  <p>embed.c /include python33</p>
  
  <p>"file python33" says:</p>
  
  <pre><code>python33 (for architecture i386):   Mach-O dynamically linked shared library i386
  python33 (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
  </code></pre>
  
  <p>and embed.c is:</p>
  
  <pre><code>#include &lt;Python.h&gt;
  
  int
  main(int argc, char *argv[])
  {
    Py_Initialize();
    PyRun_SimpleString("print 'test'\n");
    Py_Finalize();
    return 0;
  }
  </code></pre>
  
  <p>But when I do "gcc embed.c -I./include -L. -lpython33" it breaks with:</p>
  
  <pre><code>ld: library not found for -lpython33
  </code></pre>
  
  <p>Please, does anyone know how to make it compile?</p>