title: Python C-API PyUnicode_FromString
body: <p>I'm working with the Python C API, and while I've googled and found somewhat cryptic answers (that don't solve my problem), I can't seem to get past this error.</p>
  
  <p>When compiling my program with <code>gcc -shared [...] 'pkg-config --cflags --libs python3' -fPIC [...]</code> <em>(And, yes, the pkg-config line is in backticks)</em>, but it produces this error message:</p>
  
  <pre><code>‘PyUnicodeUCS2_FromString((const char *)"[...]")’ is not a function
  </code></pre>
  
  <p>The line of offending code is simple:
      PyObject *value = PyUnicode_FromString("foo")
  which is practically taken from the <a href="http://docs.python.org/py3k/extending/newtypes.html#adding-data-and-methods-to-the-basic-example%28" rel="nofollow">Python3 documentation</a>.  <em>The contents of the example compile fine and run in the Python interpreter without incident with the exact same command line arguments to <code>gcc</code>.</em></p>
  
  <p>Any help is <em>greatly</em> appreciated!  Thanks!</p>