How about setting a custom gsl error handler that throws an exception? You can set custom error handlers for the gsl using routines described here: http://www.gnu.org/software/gsl/manual/gsl-ref_3.html#SEC23
The functions take char * arguments which can then be passed along to exceptions, etc. This may be a much simpler solution than modifying the library itself. --Kevin --- Tommy Nordgren <[EMAIL PROTECTED]> wrote: > > > I'm interested in modifying the GSL source, to make > it compile with a > C++ > compiler instead. I would like suggestions on doing > this as easy as > possible. > > The reason I want to do this, is to allow error > handlers to throw > exceptions, > since it's not possible to throw exceptions across > code compiled as C++ > (If one tries, the exception handling system will > exit the app, and > this is definitely > not what's wanted when doing time-consuming > computations) > > "Home is not where you are born, but where your > heart finds peace" - > Tommy Nordgren, "The dying old crone" > > > > _______________________________________________ > Help-gsl mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-gsl > Kevin Thornton Committee on Genetics University of Chicago http://www.molpopgen.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Help-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gsl
