[Pythonmac-SIG] Where is Python.h on OS X?
gohaku
gohaku at earthlink.net
Sun Jul 11 06:31:13 CEST 2004
Hi everyone,
I am trying to compile the following:
// Don't forget to import "pythonXX.lib"!
#include <Python.h>
int main()
{
Py_Initialize();
// TODO: Add your Python code here.
PyObject* pyIntObject = PyInt_FromLong(5);
if (pyIntObject == NULL) ; // Error
Py_DECREF(pyIntObject);
Py_Finalize();
return 0;
}
I looked in /usr/include and could not find any such file.
I'm thinking I'll have to use XCode and something to do with
frameworks but am not sure how to start.
Thanks in advance.
-gohaku
More information about the Pythonmac-SIG
mailing list