[Numpy-discussion] numpy.i
Bill Spotz
wfspotz at sandia.gov
Tue Jan 26 16:46:16 EST 2010
Can you post a simple example of this not working?
On Jan 26, 2010, at 1:42 AM, Ross Harder wrote:
> I'm struggling with using some of the macros in numpy.i for my own
> typemap.
> The problem is that the arrayobject.h include does not end up in the c
> wrapper code after swig runs.
> numpy.i has at the beginning:
> %{
> #ifndef SWIG_FILE_WITH_INIT
> # define NO_IMPORT_ARRAY
> #endif
> #include "stdio.h"
> #include <numpy/arrayobject.h>
> %}
>
> I tried explicitly putting %{#include "arrayobject.h"%} into the
> interface file. It ends up after the fragment code in the wrapper so
> the compiler is complaining.
>
> thanks,
> ross
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370 Email: wfspotz at sandia.gov **
More information about the NumPy-Discussion
mailing list