At the risk of saying something really stupid (as I am relatively clueless in the matter)....it seems LD_PRELOAD is often used to achieve the effect you want.
Michel On Jun 5, 7:18 am, Joshua Kantor <[EMAIL PROTECTED]> wrote: > This is a C question, I was hoping someone had some advice on. > > Many linear algebra libraries such as lapack, and blas have an error > handling routine called xerbla_ that is called if there is an > unrecoverable error. Unfortunately this often calls exit which cannot > be caught so sage exits. > > If one is writing a pure C program I understand one can redefine > xerbla_ by writing your own and making sure that when things are > linked, your own xerbla_ is linked before blas or lapack so that it > will be called instead of the default one. > > I need to do the same sort of thing with the build of sage but I can't > get it to work, any ideas? > > More generally is there any way to override a function in a library > with a different one (without modifying the library) > > Josh --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---