[GRASS-dev] Re: [GRASS GIS] #869: Compile libs with -fexception

GRASS GIS trac at osgeo.org
Wed Jan 13 18:07:08 EST 2010


#869: Compile libs with -fexception
--------------------------+-------------------------------------------------
  Reporter:  rblazek      |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect       |      Status:  closed                   
  Priority:  normal       |   Milestone:  6.5.0                    
 Component:  Compiling    |     Version:  unspecified              
Resolution:  worksforme   |    Keywords:                           
  Platform:  Unspecified  |         Cpu:  All                      
--------------------------+-------------------------------------------------
Old description:

> I know, I want probably too much. Would it be possible to compile GRASS
> libraries (at least core libs gis, vect, ...) with -fexception by
> default?
>
> The problem is, that for example QGIS, sets error routine which throws an
> exception, everything works (even on Windows) but only if GRASS libs are
> compiled with -fexception. If -fexception flag is not used, the exception
> is thrown, but cannot be caught in QGIS and program is terminated.
>
> QGIS ticket http://trac.osgeo.org/qgis/ticket/1878

New description:

 I know, I want probably too much. Would it be possible to compile GRASS
 libraries (at least core libs gis, vect, ...) with -fexception by default?



 The problem is, that for example QGIS, sets error routine which throws an
 exception, everything works (even on Windows) but only if GRASS libs are
 compiled with -fexception. If -fexception flag is not used, the exception
 is thrown, but cannot be caught in QGIS and program is terminated.

 QGIS ticket http://trac.osgeo.org/qgis/ticket/1878

Comment (by neteler):

 Replying to [ticket:869 rblazek]:
 > I know, I want probably too much. Would it be possible to compile GRASS
 libraries (at least core libs gis, vect, ...) with -fexception by default?

 I have recompiled with -fexceptions (note the s)

 {{{
 # using something like this:
 CFLAGS="-fexceptions" ./configure ...
 }}}

 and did not encounter any problems in GRASS 6.4.

 Radim, where do you want to see -fexceptions be used?

 Markus

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/869#comment:5>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list