#869 closed defect (worksforme)
Compile libs with -fexception — at Version 5
Reported by: | rblazek | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 6.5.0 |
Component: | Compiling | Version: | unspecified |
Keywords: | Cc: | rblazek | |
CPU: | All | Platform: | Unspecified |
Description (last modified by )
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
Change History (5)
comment:1 by , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
follow-up: 3 comment:2 by , 15 years ago
Well, I expected something like that, but I must say, that I did not expect, that you want "to make life harder for anyone trying to use the GRASS libraries". I always thought that you are just ignoring them.
I think that this ticket should be closed as wontfix, not worksforme.
Can you discover more about how you want to disable use of GRASS libraries, it could save us wasting time.
comment:3 by , 15 years ago
Replying to rblazek:
Well, I expected something like that, but I must say, that I did not expect, that you want "to make life harder for anyone trying to use the GRASS libraries". I always thought that you are just ignoring them.
I think that this ticket should be closed as wontfix, not worksforme.
Can you discover more about how you want to disable use of GRASS libraries, it could save us wasting time.
I think that ignoring people who are using GRASS libraries can be not good for GRASS project itself. This is my personal opinion.
comment:4 by , 15 years ago
Replying to glynn: ..
Right now, I'm actively trying to think of ways to make life harder for anyone trying to use the GRASS libraries for anything except GRASS modules.
I think I have to comment here:
This statement sounds a bit radical to me and don't think that it reflects the idea of collaboration across OSGeo projects.
Markus
comment:5 by , 15 years ago
Description: | modified (diff) |
---|
Replying to 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
Replying to rblazek:
You do. Although it's not just you (see also: the vdigit module).
The GRASS libraries exist for GRASS, not QGIS.
Right now, I'm actively trying to think of ways to make life harder for anyone trying to use the GRASS libraries for anything except GRASS modules.
There are basically two types of people in the world: those who understand how much effort is saved by relying upon the OS' process mechanism for memory management and error recovery, and those who want the GRASS libraries to be usable in persistent applications.