Re: [xml] -fexceptions

On Mon, Jul 28, 2003 at 11:23:17AM -0400, Daniel Veillard wrote:
On Thu, Apr 03, 2003 at 07:21:29PM +0100, Graham Bennett wrote:

Is there an easy way to enable the -fexceptions flag for gcc when
building libxml?  If not, I think it would be worth adding to the
configure script (e.g. --with-exceptions).  It would be very useful to
be able to throw from SAX callbacks when using libxml from C++.

  Okay, I did look at this. I did some checks:

[ snip ]

  I'm afraid that taking a 10+% hit on code size is a bit hard to justify

quite right

so I simply added this as an option to configure:

gnome:~/XML -> ./configure --help | grep exception
  --with-fexceptions      add GCC flag -fexceptions for C++ exceptions (off)
gnome:~/XML ->

  which is kept off by default. I hope it's sufficient. It's in CVS now,

yep that's great, thanks very much.

Graham Bennett

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]