Re: [Pythonmac-SIG] Writting C extension in Mac os X tiger

2005-10-28 Thread Jaonary Rabarisoa
>> > > You forgot to use distutils to compile it, instead of Xcode. > Specifically, the problem was that you linked to a different > problem than you are attempting to use it from, potentially with > incorrect linker flags. distutils solves this problem for you > because it knows which Py

Re: [Pythonmac-SIG] Writting C extension in Mac os X tiger

2005-10-27 Thread Bob Ippolito
On Oct 27, 2005, at 12:37 PM, Jaonary Rabarisoa wrote: > Hi all, > > > I'm trying to write a C++ function that I can use with python. The > sample code below works well under windows and linux but not under > mac os x tiger : > > > #include "Python.h" > > static PyObject * mHarrisDetector(PyObjec

Re: [Pythonmac-SIG] Writting C extension in Mac os X tiger

2005-10-27 Thread Zhi Peng
I would like to run this code from Mac 10.4 environment first as individual program by create main and put some Py_Initialize();   and Py_Finalize()   inside main and compile it. If it can run, it should be able to compiled as .so library.     Regards   Zhi Jaonary Rabarisoa <[EMAIL PROTECTED]>

[Pythonmac-SIG] Writting C extension in Mac os X tiger

2005-10-27 Thread Jaonary Rabarisoa
Hi all, I'm trying to write a C++ function that I can use with python. The sample code below works well under windows and linux but not under mac os x tiger : #include "Python.h" static PyObject * mHarrisDetector(PyObject *self, PyObject *args) { //Parse the args const int N = 5