Using NR as a library


simbha
02-06-2012, 08:41 AM
Hello,

I am compiling the entire NR into a lib file that I can link with my program.

When I execute my program, there are a few function calls to lfit. For certain input values, the gaussj fails and my program quits because of an exit call from the NR lib.

Is there a way to avoid this. I really don't want to be messing around with the flow of the NR library until I understand it completely.

Any suggestions to avoid exiting to the system will be helpful.

Thanks