5 Jan
2005
5 Jan
'05
11:26 p.m.
On Wed, 5 Jan 2005, Richard B. Kreckel wrote: [...]
That does not take care of the initialization order. The ctor of class GiNaC::library_init is there to solve such problems. Please add a numeric and ex object representing the number 1e-8 in utils.h and utils.cpp and use that one instead.
Alternatives, if you absolutely want to keep utils.cpp/utilc.h decoupled from integral.cpp/integral.h: store that constant on the heap, if you prefer, and keep the pointer as POD. Or using a constant or numeric object without that ex wrapper might even work, too. After all, it's the attempt to use the complex power evaluator that leads to the crash in this case. Good night. -richy. -- Richard B. Kreckel <http://www.ginac.de/~kreckel/>