[SciPy-user] [Nipy-devel] how to wrap C++

Robert Kern robert.kern at gmail.com
Sat Jan 27 02:44:26 CST 2007

Travis Oliphant wrote:
> Mark Heslep wrote:
>> A bit of redirect here: If the OP had been talking about an existing C 
>> lib and not C++, would the recommendation be 'always reach first for 
>> Ctypes'? It seems too easy and direct to waste time elsewhere.
> It still depends a little.  A large library is probably more easily 
> handled with SWIG, but for custom interfaces I would say ctypes is best. 

I would also suggest that if the interfaces are simple enough (or rather
FORTRAN-like enough) that f2py can handle them, f2py might be easiest.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

More information about the SciPy-user mailing list