[Numpy-discussion] mixing -fno-exceptions with swig c++ wrappers to python
Bill Spotz
wfspotz at sandia.gov
Mon Sep 7 19:49:27 EDT 2009
numpy.i is supposed to be C-compatible, so it does not generate any
throw or catch statements, and utilizes standard python error
handling. Using -fno-exceptions should be OK.
On Sep 7, 2009, at 12:16 PM, Rohit Garg wrote:
> On Sun, Sep 6, 2009 at 8:35 PM, David
> Cournapeau<david at ar.media.kyoto-u.ac.jp> wrote:
>> Rohit Garg wrote:
>>> Hi,
>>>
>>> I am using swig to expose a c++ class to Python. I am wondering if
>>> it
>>> is safe to use the -fno-exceptions option while compiling the
>>> wrappers. I am also using the typemaps present in the numpy.i file
>>> that comes with numpy.
>>>
>>>
>>
>> It will mostly depend on the code you are wrapping and your
>> toolchain.
>> It should not cause trouble w.r.t numpy, as numpy does not use C++
>> at all.
> Yeah, that's what I meant. If my code does not use exceptions, then is
> it safe to use -fno-exceptions?
>
>>
>> cheers,
>>
>> David
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
>
>
>
> --
> Rohit Garg
>
> http://rpg-314.blogspot.com/
>
> Senior Undergraduate
> Department of Physics
> Indian Institute of Technology
> Bombay
> _______________________________________________
> 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